Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
