1 / 4

Flowol

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). Flowol. Let flashes = 0 Is flashes = 3? If No turn lamp on delay 2 seconds

jaron
Download Presentation

Flowol

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 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. Flowol 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 To do this effectively you need to use repetition

  3. 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. Flowol Key vocabulary: Repetition Variable Loop Condition Pseudo code

More Related