Question: * Create a python solution that reads a file containing angles in degrees, minutes, seconds format ( DD MM ' SS ) , converts
Create a python solution that reads a file containing angles in degrees, minutes, seconds format DDMMSS converts the value to a decimal degree value, then write the values to a file.
To simplify you code, you will need to create the following functions:
ParseDegreeStringddmmss inputs a location value and returns the degrees, minutes, and seconds
Inputs
ddmmss inputs a string in the form of ddmmss and returns the degrees, minutes, and seconds
Returns
Degrees Floating Point
Minutes Floating Point
Seconds Floating Point
Logic
Find the degree symbol chr degrees are between the beginning of the string and the position of the degree symbol.
Find the minutes symbol minutes are between the degree symbol and the minute symbol
Find the seconds symbol seconds are between the minutes symbol and the seconds symbol
Return the degrees, minutes, and seconds as floating point
DDMMSStoDecimaldegrees minutes, seconds inputs degrees, minutes, and seconds and converts to a decimal value
Inputs
Degrees Floating Point
Minutes Floating Point
Seconds Floating Point
Returns
Decimal Degrees Floating Point
Logic
There are minutes in a degree and seconds in a degree. Calculate the decimals degrees as degrees plus minutes divided by plus seconds divided by
Copy paste and save the file below asProject Angles Input.txt
Expected Output
records processed
ExpectedProject Angles Output.txt
Insert a picture of code thank you
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
