Computer Science 523
Advanced Programming
Summer 2014, The College of Saint Rose
Agenda
We will work together to develop a Java program that will include a class to represent a circle and another class that will create and work with some circles. You may work alone or with a partner on this exercise in class.
Our circles will not actually be drawn on the screen, but we will store information that could be used to do so. We will maintain 3 pieces of information about the circles:
We will develop a class called Circle which stores the above data, and includes methods to create a circle, query its center, query its radius, query its color, query its top, bottom, left end right edges, query its diameter, and obtain a String description of the circle. Additional methods will allow the center, radius, diameter, and color to be modified.
We will also develop a class called CircleMaker that we will use to test the constructors and other methods of the Circle class.
Please submit an archive file that contains your Java files for this program in Submission Box under "InClass3" before you leave class.
Terminology
Examples