ScratchData LogoScratchData
Back to jkibbe's profile

T$C - Clock Angle template

JKjkibbe•Created March 10, 2016
T$C - Clock Angle template
0
0
21 views
View on Scratch

Instructions

You are given a time in 12-hour format and you should calculate a lesser angle between the hour and minute hands in degrees (no angle > 180). The result should be given in degrees with precision ±0.1. Note: remember that the hour hand continues to move as the minute hand moves. For example, 3:30 is not a 90 degree angle since the hour hand is halfway between the 3 and 4.

Description

Test data: 2:30 = 105 degrees 1:42 = 159 degrees 1:43 = 153.5 degrees 12:00 = 0 degrees 6:00 = 180 degrees Hint: think about the number of degrees per hour (plus extra degrees per minute) and the number of degrees per minute. Find the difference between these two numbers. Make sure you report the small and not the reflex angle (that is > 180). 2:30 is 105 degrees, not 255 degrees.

Project Details

Project ID101182165
CreatedMarch 10, 2016
Last ModifiedMarch 23, 2016
SharedMarch 23, 2016
Visibilityvisible
CommentsAllowed