Angles In Time:
A Coding Project
This app returns the angle between the hour and minute hands on a clock.
This application demonstrates the algorythm that calculates the inner angle between the hour and minute hands for the clock time entered in the form. It converts the minutes to degrees in relation to the clock circle for each clock hand, 12:00 being 0 degrees, then the algorythm returns the inner or acute angle between the hour and minute hands.
Instructions
- Enter the time for the hour hand in the hour field, between 0 and 23. 0:00 is midnight, or in military time referred to as zero hundred hours. You can use military time for the hour input.
- Enter the time for the minute hand in the minute field, between 0 and 59.
- Click on the calculate button.
- The results message will give the inner or acute angle in degrees between the hour and minute hands.
- The clock image will refresh to show the time that was entered.