Page 93 - Plus V4 with Adobe class 8
P. 93
Look at this example:
Robby has to paint these blank boxes to make a letter ‘U’
The program will be
Move 1 down Repeat 4 times
Move 1 down (Move 1 down)
Move 1 down
Move 1 down
Move 1 right Repeat 3 times
Move 1 right (Move 1 right )
Move 1 right
Move 1 up Repeat 4 times
Move 1 up (Move 1 up)
Move 1 up
Move 1 up
Program without a loop Program with a loop
Look at another examples:
1.
Move 2 steps down
Repeat 6 times
(
Fill color
Move 1 step right
)
2.
Repeat until reached last column
(
Fill color
Move 1 step right
)
#Algorithmic Intelligence 91

