99 034
Assignments Done
98.9%
Successfully Done
In May 2021

# Answer to Question #18311 in C++ for Reyhana

Question #18311
hi
I need help in solving this assignment

Angles are often measured in degrees ( &deg; ), minutes ( ' ), and seconds ( &quot; ). There are 360 degrees
in a circle, 60 minutes in one degree, and 60 seconds in one minute. Design an algorithm to read
two angular measurements given in degrees, minutes, and seconds and then calculate and print
out their sum and repeat these four times. Use your program to verify each of the following:
74&deg; 29' 13&quot; + 105&deg; 8' 16&quot; = 179&deg; 37' 29&quot;
7&deg; 14' 55&quot; + 5&deg; 24' 55&quot; = 12&deg; 39' 50&quot;
20&deg; 31' 19&quot; + 0&deg; 31' 30&quot; = 21&deg; 2' 49&quot;
122&deg; 17' 48&quot; + 237&deg; 42' 12&quot; = 0&deg; 0' 0&quot;
Use an input file (MyData.dat) that contains all the angular measurements given in the above
examples and print out their sums into an output file (MyOutput.txt) in the same format as
shown in the examples.Content of your input file:
74 29 13 105 8 16
7 14 55 5 24 55
20 31 19 0 31 30
122 17 48 237 42 12

Content of your output file after run:
74&deg; 29' 13&quot; + 105&deg; 8' 16&quot; = 179&deg; 37' 29&quot;
7&deg; 14' 55&quot; + 5&deg; 24' 55&quot; = 12&deg; 39' 50&quot;
20&deg; 31' 19&quot; + 0&deg; 31' 30&quot; = 21&deg; 2' 49&quot;
122&deg; 17' 48&quot; + 237&deg; 42' 12&quot; = 0&deg; 0' 0&quot;
1
2012-11-09T03:27:25-0500
Submit it with all requirements as an assignment to our control panel and we'll assist you.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!