Question: Java Part 1. Write a graphics program to display a square containing a circle. Make the diameter of the circle and the length of the

Java

Part 1.

Write a graphics program to display a square containing a circle. Make the diameter of the circle and the length of the squares side equal, so that the circle just touches each side of the square. Use one color to fill the circle, and another color for the part of the square not covered by the circle.

Part 2.

Write a program that displays a bulls-eye pattern with a circle in the middle and five (5) concentric circles around it. Fill the circles with alternating colors of your choice.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!