Answer:

' Draw a circle at the center of the screen
SCREEN 12
COLOR 7
CIRCLE  (640 / 2, 480 / 2), 50 * 2
END

Bull's Eye

Sometimes doing a bit of arithmetic makes it easy to write an interesting program. Here is a program that draws four circles of different sizes but with the same center:

' Draw four circles at the center of the screen
SCREEN 12
COLOR 7
CIRCLE  (640 / 2, 480 / 2),25
CIRCLE  (640 / 2, 480 / 2),25 * 2
CIRCLE  (640 / 2, 480 / 2),25 * 3
CIRCLE  (640 / 2, 480 / 2),25 * 4
END

The circles are drawn from the smallest (with a radius of 25) to the largest (with a radius of 25 * 4, or 100). If you write this program, remember that you can use the edit menu of QBasic with copy and paste to make four copies of the CIRCLE statement. Then you just have to type the few new characters at the end of each one.

QUESTION 19:

Modify the above program so that it draws the first circle with color 4, the next circle with color 8, the next circle with color 9, and the last circle with color 10.