Question: Java programming problem, could you please add comments // so that I know why you took the steps you did? Thank you! Angles are often
Java programming problem, could you please add comments "//" so that I know why you took the steps you did? Thank you!
Angles are often measured in degrees, minutes, and seconds. There are 360 degrees in a circle, 60 minutes in one degree, and 60 seconds in one minute. Write a program that reads two angular measurements given in degrees, minutes, and seconds, and then calculates and prints their sum. Constants are required for this program. Use your program to verify the following : 
Execution 1: Measurement #1 Enter the degrees: 74 Enter the minutes: 29 Enter the seconds: 13 Measurement #2 Enter the degrees: 105 Enter the minutes: 8 Enter the seconds: 16 The sum of measurement #1 and measurement #2 is 179 degrees, 37 minutes, and 29 seconds Execution 2: Measurement #1 Enter the degrees: 7 Enter the minutes: 14 Enter the seconds: 55 Measurement #2 Enter the degrees: 5 Enter the minutes: 24 Enter the seconds: 55 The sum of measurement #1 and measurement #2 is 12 degrees, 39 minutes, and 50 seconds Execution 3: Measurement #1 Enter the degrees: 1 Enter the minutes: 17 Enter the seconds: 48 Measurement #2 Enter the degrees: 237 Enter the minutes: 42 Enter the seconds: 12 The sum of measurement #1 and measurement #2 is 239 degrees, 0 minutes, and 0 seconds
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
