Question
1. In an older system of units, angular measurements were often written in degrees, minutes, and seconds, where 1 degree = 60 minutes and 1
1. In an older system of units, angular measurements were often written in degrees, minutes, and seconds, where 1 degree = 60 minutes and 1 minute = 60 seconds. Design and implement a class that will take such an angle and convert it to decimal degrees. You decide how to implement the input and output procedures. Data members should at least include degrees, minutes, and seconds, each of which should float members. Test the code with at least three different angular inputs. Better yet, allow the user to determine if he/she wishes to enter another angle to convert.
2. Design and implement a class that will enable the user to enter the total number of seconds between two events and convert it into units of years, months, days, hours, minutes, and seconds. Ignore leap years, and assume that a month has 30 days.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started