CGS2423, Assignment 2
Due Thursday, February 14 at the start of class
Write a complete program using C that will meet the requirements of problem
1 on page 110 of the text.
-
There are 180 degrees in PI radians.
-
Degrees and minutes will be entered as integers. You will need to convert
degrees and minutes to radians.
-
When displaying the result, display it in a complete sentence that also indicates
the original locations.
-
In the output, only print 2 decimal places for the distance.
-
In the formula, there is a reference to sin-1. This refers
to the arcsin function in trigonometry. This function is called
asin in the math.h include file.
You might find this site useful for testing your program:
http://www.vsv.slu.se/johnb/java/lat-long.htm.
Actually, it is your program, but with a fancy interface.