Question: The following code will be in C. Convert latitudes and longitude from sexagesimal (base 60) degrees to decimal degrees. latitude and longitude are represented in
The following code will be in C.
Convert latitudes and longitude from sexagesimal (base 60) degrees to decimal degrees. latitude and longitude are represented in the following form: degrees, minutes, seconds, arcseconds, and direction. Initially, the latitude and longitude are inputted as characters.
The formula to convert a sexagesimal degree measurement to a digital degree measurement is shown below 
Function Requirements are below

Examples of possible sexagesimal values being passed to the function are
Latitude: 28-35-21.9970N
Longitude: 081-08-39.2290W
In advance thank you for the help.
1.3.1 Latitude/Longitude Input The latitude and longitude are both degrees, expressed as shown in the tables below Table 2: Degrees Placeholder Name Value 180 0-59 Decimal 0-180 Degrees Minutes Seconds.MilliArcSeconds 0-59.0-9999 Direction SS.MAS N,S,E,W See Table 3 Table 3: Direction Name Decimal Sign Unit Latitude Longitude The conversion of the DDD-MM-SS.MASD string is shown in Table 2. The for mula to convert a sexagesimal degree measurement to a digital degree measurement is shown below degreesdecimalDDD + M M 160 + SS.M AS/602 Note that the is derived from the information in Table 3 above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
