Procedures and Programs

task

Watch this Procedures and Programs tutorial

yt


Procedures are sets of Commands that are arranged in order and then given a name.

A procedure can be Run.

To the right is an example of a Procedure.

What do you think it does?

Build it yourself, save it with the name Flash and run it.

Does it do what you expected?

flash


task

 

 

 

Create a procedure for the Clown simulation that:

1) Opens the Right Eye for 2 seconds and then closses it.

2) Opens the Left Eye for 2 seconds and then closses it.

3) Lights up the Nose and spins the Tie Forwards for 2 seconds.

4) Spins the Tie Backwards for 2 seconds.

5) 'Says' what is happening at each stage.

6) Says 'Goodbye' and switches all outputs off

 

Save the procedure as Clown and then test it using the Clown Simulation.

Does it work? If not why?

clown