1. Click on the “Green flag” to start the program. 2. When prompted, enter the time: hours and minutes. 3. The digital and analog clocks are displayed showing the given time.
This is a program in which you design a combination digital-analog clock. The digital clock shows hours, minutes and seconds as numbers, and the analog clock has all three respective hands. The digital clock uses a 24-hour time format, and the analog clock shows AM or PM. The analog clock shows a tick-tock animation synchronized with the motion of the second-hand. Every time you stop and start the clock the animation may change. The user can set the clock time by adding or subtracting minutes.