Question: In this application, you will create a Target class. A target consisting of three concentric circles with specifications listed below The constructor takes the x,
In this application, you will create a Target class. A target consisting of three concentric circles with specifications listed below
The constructor takes the x, y coordinates of the center of the target and the radius of the smallest circle.
Provide a draw method that follows these specifications
The center is at x, y
The largest circle is red with a radius of 3 times that of the smallest circle(Use Color.RED)
The second circle is white with a radius of 2 times that of the smallest circle. (Use Color.WHITE)
The smallest circle is red again with the radius given in the constructor. (Use Color.RED)
You will write the TargetComponent class to construct and draw two Targets objects given criteria
The center is at 50, 60. The small radius is 15
The center is at 30, 150. The small radius is 5
TargetViewer is provided.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
