Presentation is loading. Please wait.

Presentation is loading. Please wait.

Www.bluesquarething.co.uk/kthree/flowol.htm Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and.

Similar presentations


Presentation on theme: "Www.bluesquarething.co.uk/kthree/flowol.htm Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and."— Presentation transcript:

1 www.bluesquarething.co.uk/kthree/flowol.htm Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and 2 short flashes every 20 seconds? (There should be 1 second between each flash)

2 www.bluesquarething.co.uk/kthree/flowol.htm Flowol To do this effectively you need to use repetition Let flashes = 0 Is flashes = 3? If No turn lamp on delay 2 seconds turn lamp off Let flashes = flashes + 1 delay 1 second If Yes move on to next part of program

3 www.bluesquarething.co.uk/kthree/flowol.htm Flowol Repetition allows you to repeat the same action a number of times.  Set up a variable (Let flashes = 0)  Check whether the variable has reached its upper limit  Do the action  Increase the variable by 1 each time

4 www.bluesquarething.co.uk/kthree/flowol.htm Flowol Key vocabulary:  Repetition  Variable  Loop  Condition  Pseudo code


Download ppt "Www.bluesquarething.co.uk/kthree/flowol.htm Flowol Lighthouses don’t all have the same flash pattern  Can you make your lighthouse flash with 3 long and."

Similar presentations


Ads by Google