Creating your first Program - Washing Machine

This is an individual piece of work. It forms part of your assessment. The work you submit MUST be your own!

It SHOULD NOT look the same as someone else's. This would be treated as Plagiarism!


So far you have only created Procedures. You are now going to create a Program.

A Program is a collection of Procedures that are saved as a group.

You will get procedures to Run by adding their names into other procedures.


task

You are going to create a Program called MACHINE.

Machine, which is short for Washing Machine, is made up of five Procedures:

creating

1

Washing

Is the Procedure that 'controls' all the other procedures

steps
2

Tumble

Makes the washing 'tumble' around and separate inside the washing machine. It does this by making Motor A go backwards and forwards 5 times. (About 3 seconds each way at a Power of about 3)

3

Fill

Fills up with Water (using Output 1 untill Sensor 1= 70)

4

Spin

Spins the clothes about in the water to wash them. To do this you are once again going to use Motor A. (Go forwards for 5 seconds on Power 10)

5

Drain

Opposite of Fill. Switch Output 2 on untill Sensor 1 = 0

     

The Washing Procedure has been provided for you but you must work out the other four yourself. (see below)

 

Additional Information


P

You MUST use the Add Procedures Button not the New Procedures button.

add_procedure  
P

DO NOT Save until you have created all 5 Procedures (Machine, Tumble, Fill, Spin & Drain) because they HAVE TO be saved together as a group in order to create a Program!

P

Save as YourName Washing Machine

P

Use the Say command in all Procedures to explain what is happening at each stage (imagine your Washing Machine can speak!)

P

Test your Program using the Washing Machine Simulation

P

When your Program runs properly copy the code for each procedure into Word, save it with the same name as your Program and then email it to your teacher.

washing