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.

Slides:



Advertisements
Similar presentations
Control Structure There are two kind of control structure in GWBASIC one is iteration/loop or repetitive and second make decision/condition. Iteration/Loop.
Advertisements

Lesson 6-2 Using Proportions Pgs What you will learn: Solve proportions Use proportions to solve real- world problems.
This symbol is used to; Start a flow-chart; Stop a singe flow-chart (or all flow charts in that program); Mark the Start of a Sub-Routine (a separate.
Flowol The Task.
Flowchart What is a flowchart? A flowchart is a schematic representation of an algorithm or a process or a program. Why should a flowchart be produce before.
Unit 7.6 Lesson 2 Goals Identify and use flowchart symbols. Plan a sequence of events and incorporate them into a flowchart. Create a simple flowchart.
Click your mouse to continue. Personalized Menus When you open a menu for the first time, the default menu items appear on the short menu. Click the double-arrow.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
This game is loosely based on the Whack-A- Mole arcade game.  Each game starts with 45 seconds of play.  Moles randomly pop out of holes on the landscape.
Fall 2007ACS-1805 Ron McFadyen1 Chapter 7 Repetition.
Basic Building Blocks of Programming. Variables and Assignment Think of a variable as an empty container Assignment symbol (=) means putting a value into.
UNIT 6.15 Special Solutions: Graphing I can identify special solutions within a system of equations graphically.
New Mexico Computer Science For All More Looping in NetLogo Maureen Psaila-Dombrowski.
Fractions and Decimals 5.2. Writing a Fraction as a decimal Divide the numerator by the denominator.
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Flowol subroutines Subroutines are used to:  Simplify your code to make it easier to read (or for someone.
Arrays. Arrays: Introduction So far, we handled only one object in each line of code. When we wanted multiple objects to do something, we wrote multiple.
Introduction to Robo Pro
Introduction to the Arduino
Bug Session Three. Session description In this session, pupils will discover how the Bug software makes drawing shapes easier (this is based on the use.
Objective Students will solve proportions Chapter 8, lesson 2 (8-2).
Python Repetition. We use repetition to prevent typing the same code out many times and to make our code more efficient. FOR is used when you know how.
New Tools And Workshop Mod & For Loops. Modulo Calculates the remainder (remember long division?) % Examples: 7 % 3 10 % 2 2 % 3 evaluates to 1 evaluates.
Study the patterns below to determine the next five numbers in each sequence. You may use the calculator to check your answers. 1. 2, 4, 6, 8,
Binary Bracelets. Objectives Encode letters into binary Decode binary back to letters Relate the idea of storing initials on a bracelet to the idea of.
Name: Date: Period: Topic: Patterns and Linear Functions Essential Question: How can you represent and describe functions? Warm-Up : 1. The average price.
ITEC 109 Lecture 11 While loops. while loops Review Choices –1 st –2 nd to ?th –Last What happens if you only use ifs? Can you have just an else by itself?
For Code Next For Code Next A loop is a segment of a code that repeats (changing slightly each time)
CS112 Scientific Computation Department of Computer Science Wellesley College Loops Iteration with for loops.
Counting Loops.
PROPORTIONS 6-2. VOCABULARY Proportion – equality of two ratios Cross Products – the results when you cross multiply.
2.1 Notes – Represent Relations and Functions
Iteration. Iteration: Review  If you wanted to display all the numbers from 1 to 1000, you wouldn’t want to do this, would you? Start display 1 display.
Written by: Dr. JJ Shepherd
The Skull This program makes the red eye flash on and off then the green eye flash on then off for 2 seconds each. Amend the program so that the red eye.
CSD 340 (Blum)1 For Loops See Beginning JavaScript (Paul Wilton) p. 87.
Slide 1 Flowchart with loop Start Is light less than 50? Turn lamp on Yes No.
Lesson 2 Inputs. Lesson objectives To understand how inputs can be used to control an output To consider how to make mimics more realistic.
9.5 Inequalities in Two Variables  Two Key Terms  Two Objectives.
Slide 1 Computers or people? Teacher resource 5.1.
Unit 7.6 – Control & Monitoring Overview Key Stage 3 National Strategy ICT Strand.
 This is nothing new and it is not your first year in school we are just continuing on from where you left off in elementary school. Basic Rules For Mr.
Control Technology START What is control technology? What is this diagram called? In which program have you used these before? Lets Go!
5-1 Solving Systems by Graphing. Geogebra Solving a System by Graphing Solving a System by Graphing (2)
World of Wokcraft The very best in Single pan cooking themed fantasy gaming!
Loops causes program to execute the certain block of code repeatedly until some conditions are satisfied. Suppose you want to execute some code/s 10 times.
Lesson 4-1 Solving linear system of equations by graphing
Chapter 6: Loops.
Introduction To Repetition The for loop
Continuing with LED’s and Arduino
For Loops October 12, 2017.
Basketball Drill Programming Alternatives
BBC Microbit.
Crumble PowerPoint 5.
Converting Repeating Decimals to Fractions
Unit 3: Lesson 9-Looping and Random Numbers
10:00.
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Wednesday, 02 January 2019.
Java Lessons 28 – 32 Mr. Kalmes.
Nate Brunelle Today: Turtles
Chapter 4-3 Prime Factorization
Lesson 4 Variables.
Mental Math Addition.
Do it now – PAGE 11 You will find your do it now task in your workbook – look for the start button! Monday, 20 May 2019.
Software Development Techniques
Nate Brunelle Today: Pseudo-Code
Is there an alternative to copy-paste for repeating code?
Objective of the lesson
Arrays: Iteration Working through an array algorithmically.
Presentation transcript:

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 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

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

Flowol Key vocabulary:  Repetition  Variable  Loop  Condition  Pseudo code