Which half of the last circle (right or left) is cut off?
Right.
Here is (approximately) what the current version of the program draws:
The ruler at the top shows the X location of the center of each circle. Each is a multiple of 64 The all balloons could fit if you could shift each balloon's center 32 pixels to the left:
BALLOON | X | Y |
---|---|---|
1 | 64-32 = 32 | 100 |
2 | 128-32 = 96 | 100 |
3 | 192-32 =160 | 100 |
4 | 256-32 =224 | 100 |
... | ... | ... |
10 | 640-32 = 608 | 100 |
Here is the program without the new change:
' Draw 10 Red Balloons SCREEN 12 ' start up graphics COLOR 4 ' set the pen color to red ' LET BALLOON = 1 ' start with balloon number 1 DO WHILE BALLOON <= 10 ' end with balloon number 10 LET X = BALLOON * 64 ' calculate an X for this balloon CIRCLE (X, 100), 25 ' draw a balloon LET BALLOON = BALLOON + 1 ' go on to next balloon LOOP END
Think of a change to the program that will shift each balloon 32 pixels to the left.