Create a program that, on a 500x500 pixel window, allows the user click six times on the screen to draw six circles with

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Create a program that, on a 500x500 pixel window, allows the user click six times on the screen to draw six circles with

Post by answerhappygod »

Create A Program That On A 500x500 Pixel Window Allows The User Click Six Times On The Screen To Draw Six Circles With 1
Create A Program That On A 500x500 Pixel Window Allows The User Click Six Times On The Screen To Draw Six Circles With 1 (39.48 KiB) Viewed 36 times
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.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply