' Draw two circles ' SCREEN 12 LET HUE = 4 COLOR HUE CIRCLE (320, 240),50 SLEEP 1 ' LET HUE = HUE + 1 COLOR HUE CIRCLE (320, 240),50 SLEEP 1 END
Remember the original problem design:
Draw a circle of radius 50 in the center of the screen. Pause, then draw the circle again with a different color. Continue pausing and drawing 100 times. Each time the circle is drawn it is drawn in a new color (but one of the 15 possible colors).
The current version of the program draws just two circles. We could keep adding to it until it draws all 100 circles. But this would be bothersome. It is better to use a counting loop that repeats the statements that draw a circle:
' Draw 100 circles, each in a new color ' (incomplete program) ' SCREEN 12 ' LET HUE = 4 LET COUNT = 1 ' DO WHILE COUNT <= ________ ' LET HUE = HUE + 1 COLOR HUE CIRCLE (320, 240),50 SLEEP 1 ' LET COUNT = ________ LOOP ' END
Fill in the blanks so that the loop body executes 100 times. (This is just a counting loop, just like several chapters ago.)