Write a complete program that draws the following graphical figure onto a
The overall drawing panel is size 500 x 350.
Its background is cyan.
The rectangular area behind the grids is green, and the background of the circles is yellow.
The rectangles and circles are outlined in black.
Each grid also has a pair of lines drawn across it in an "X" pattern.
The seven figures on the panel should have the following properties:
||(x, y) position
||size of subfigure
||circles per subfigure
||100 x 100
||100 x 100
||60 x 60
||80 x 80
||48 x 48
||3 x 3
||24 x 24
||5 x 5
||72 x 72
||2 x 2
Structure your solution and eliminate redundancy using functions.
Write a function to draw one single concentric circle subfigure.
A subfigure is one set of yellow and black concentric circles.
Different subfigures have different sizes, positions, and so on.
Therefore, your function should accept several parameters so that it is possible to call it many times to draw the many different subfigures on the screen.
Assume that every subfigure's width and height are the same, and that the subfigure's size is a multiple of its number of circles, so that all coordinates are integers.
Write another function that produces a square grid of subfigures.
You will call this function three different times to produce the grids of the overall figure.
It will need a lot of parameters to be flexible enough to draw each of these grids.
The key point is that this single function can be called multiple times to produce all the grids in the overall figure.
Your two functions should work together to remove redundancy.
Assume each grid has an equal number of rows and columns.