Please read the entire problem before jumping into the code!
Using the in-class examples and practice test as a guide, create a class called Compass
with the following characteristics:
degrees
, minutes
and seconds
.
Degrees should be a positive number that can range from 0 to 359; minutes and seconds both
range from 0-59.0°0'0"
if arguments are not given.d°m's"
format.Write a driver program to test all the permutations of your class, as you did in the practice test. Your class definition, implementation and driver program should all be in appropriately named, separate files. Submit your copies to the FTP site in a separate folder/directory named P10.
Submissions to the FTP site that are NOT saved in the separate P10 directory will be automatically docked 10 points for failing to follow instructions.