Question: 1. (10 points) Write a Java program that draws five pairs of circles and squares. For each pair of circle and square, the circle should

 1. (10 points) Write a Java program that draws five pairs

1. (10 points) Write a Java program that draws five pairs of circles and squares. For each pair of circle and square, the circle should be inscribed the square. The horizontal and vertical distances between the adjacent pairs of circles and the horizontal and vertical distances between the adjacent pairs of squares are the same. Also the colors of the circles and squares should be random. Please refer to Appendix 1 for the output of your program. Appendix 1

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!