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 149 degrees 34.8 minutes west longitude, and 17 degrees 31.5 minutes south latitude. This is written as 14934.8'W,1731.5'S. 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 17959.9''E format. Also write a three-argument 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 'xF8', which usually prints a degree () symbol.
[10 marks]
 define abstration in oop (b) In ocean navigation, locations are measured

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!