Create a program that, on a 500x500 pixel window, allows the user click six times on the screen to draw six circles with
Posted: Sat May 14, 2022 6:33 pm
Create a program that, on a 500x500 pixel window, allows the user click six times on the screen to draw six circles with variable radius where: The point clicked will be the center of each circle • The radius of the circle must be a integer in the range 50-100 picked at random every time • You must print a label (text) at the center of each circle indicating the order (this is, 1, 2, 3, 4, 5 and 6) as a white text. • The filling color of the circle should be random, from the following list: red, blue, green, purple, gray. Hint: you can use the function choice from the random library At the top central part of the window a message must be displayed that states "Click to draw a circle: 6 left". This message must change to "Click to draw a square: n left" accordingly (n should be updated at each click) and finally "Click to quit" when all 6 circles are drawn.