Answered step by step
Verified Expert Solution
Question
1 Approved Answer
define abstration in oop ( b ) In ocean navigation, locations are measured in degrees and minutes of latitude and longitude. Thus, if you're lying
define abstration in oop
b In ocean navigation, locations are measured in degrees and minutes of latitude and longitude. Thus, if you're lying off the mouth of Papeete Harbor in Tahiti, your location is degrees minutes west longitude, and degrees minutes south latitude. This is written as Create a class angle that includes three member variables: an int for degrees, a float for minutes, and a char for the direction letter N S E or W This class can hold either a latitude variable or a longitude variable. Write one member function to obtain an angle value in degrees and minutes and a direction from the user, and a second to display the angle value in E format. Also write a threeargument constructor. Write a main program that displays an angle initialized with the constructor, and then, within a loop, allows the user to input any angle value, and then displays the value. You can use the hex character constant which usually prints a degree symbol.
marks
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