BullsEye Program
- Design and code a class to represent a Bullseye. A bullseye consists of 4 concentric circles. It has 2 colors, and they alternate when drawing the circles. The bullseye also has a center point and the width to use when drawing each concentric circle.
A bullseye can be an outline, or have the circles filled in.
- The code you should use for the Applet is posted under
downloads. Get both the .java file and the .html file.
- Remember the requirements are to code and design the class - this means to write all the methods even if this program does not call them.
- For instance, we talked about 2 additional constructors - one that takes the center point, and another that takes the center point, color1, and color2.
Make sure to write them, and any other contructors that make sense for good design.
- Here is a picture of the whiteboard from our design session: