Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in Python please!! Write a program named lesthom.inssmom chock:py) to display a clock face with hands showing the current time. The radius of the clock
in Python please!!
Write a program named lesthom.inssmom chock:py) to display a clock face with hands showing the current time. The radius of the clock face (the distance from the center to the hour markers) is 150. The hour hand has length 100, and the minute hand has a length of 120 You may design the clock in one of three ways using the Fsusre cursor shape (hintta)) for the hour markers and center of the clock (Figure 2a), using the sue cursor shape for the hour markers and adding a circle for the face (Figure 2b), or by drawing small rectangles for the hour markers and center of the face (Figure 20. The images are reduced in size to fit on the page be Figure 2 Figure 2b Figure 2c t the hour and minute, use the following code. Note that the code uses %12 on the hour to get a number in the 11, so both noon and midnight work out to zero. (This makes the calculations much easier, believe it or not!) To ge range O to 11. so both noon and inoort datetine Things to Note . used cROtodraw the c kface. You can use it ps well or draw the circde yourself,or just a 12-sided clock face The position of the hour hand is a combination ofthe hour ond minute. In the preceding figures (all made 8:50 a.m). the hour hand is not pointing at 8. it is almost all the way to the 9Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started