Algorithms and programs
Algorithms and programs
&
PROGRAMS
Here starts
the lesson!
Observe this picture
closely
See – Think -
Wonder
● What do you see?
Create an algorithm
Create a program
How about
the problem
of adding two
numbers ● Step 1: Input a number A
● Step 2: Input a number B
● Step 3: Sum = A + B
● Step 4: Output Sum
● Step 5: End
Now you Checking if a
try! number is even or
Subtracting 2 odd.
numbers Comparing two
numbers and
Drawing a square telling which is
larger
Directions to your
class from the lab Riding a cycle
Where are
algorithms ● Navigation apps like Google
used? Maps use algorithms to find
the shortest or fastest route
from one place to another
Inputs
10 numbers in a
sequence
Process
Addition
Output
Total / Sum
Extra
Challenge
Adapt the program so
that it repeats until
total is greater than
50
Exit Ticket