Write a program that draws 750 non-overlapping randomly chosen circles, with diameters between 5 and 25, in a graphics window that is 600 pixels by 600 pixels. Here is a demonstration of what your final program should do.
Notice that a randomly chosen circle has three parameters, two locations coordinates and a diameter. Your program will need to keep track of the non-overlapping circles that it has generated up to a certain point. Do this by storing the data for a circle in an object of type
You will need to define the class
You can write your program as either an application or as an applet.
This assignment is due Thrusday, November 20.
|