Question: Please read all. Thanks :) Write a Java program that draws 5 pairs of circles and squares . For each pair of circle and square,
Please read all. Thanks :)
Write a Java program that draws 5 pairs of circles and squares.
For each pair of circle and square, the circle should be inscribed in 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.
The colors of the circles and squares should be random.
Below is an example of how the program should run:

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
