Write a C++ program that will process a stream of GPS data. Each line of data starts with a command, followed by the data for that command. There will be one command per line.

Question
Write a C++ program that will process a stream of GPS data. Each line of data starts with a command, followed by the data for that command. There will be one command per line.

Your program should.

Ask the user for the name of a data file.
echo print the file name
Open the data file
if the file fails to open, return to step 1
Skip the first two lines of the data file.
Process each command in the data file.
Report the following to both the screen (cout) and a file named GPS.report:
Final Location
Total distance traveled (rounded to one decimal place)
Distance to starting point (rounded to one decimal place)
Commands:
START – indicates the starting location of the trip
STOP – indicates the ending location of the trip
DATA – indicates a turning point.

Order from us and get better grades. We are the service you have been looking for.