Computer Science 121
Assignment 5
Due: March 7, 2001

For this assignment, create an applet that draws a series of either circular figures or rectangular figures. Use either a 'for' loop or a 'while' loop to create the series of figures. Use the same CircularFigure class that you used in Assignment 3. However, you may change it to a RectangularFigure class, or even use both, if you like.

The loop should be in the paint method. Each time through the loop, you should change the parameters for the circles (or rectangles) so that you have a series of figures. These may either overlap or be disjoint. As before, you can change colors or sizes as you wish.

This time also answer the following questions:

1.    How did you decide on the design for the series of figures that you drew?

2.    Why did you choose the particular colors and sizes for your figures?

3.    How did the use of the loop make your program more efficient that the one that you wrote for assignment 3?