C++ program that will process a stream of GPS data

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.

  1. Ask the user for the name of a data file.
    • echo print the file name
  2. Open the data file
    1. if the file fails to open, return to step 1
  3. Skip the first two lines of the data file.
  4. Process each command in the data file.
  5. Report the following to both the screen (cout) and a file named GPS.report:
    1. Final Location
    2. Total distance traveled (rounded to one decimal place)
    3. 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.

      Among other benefits, we guarantee:

      • Essays written from scratch – 100% original,

      • Timely delivery,

      • Competitive prices and excellent quality,

      • 24/7 customer support,

      • Priority on customer’s privacy,

      • Unlimited free revisions upon request, and

      • Plagiarism free work.

      Providing quality essays, written from scratch, delivered on time, at affordable rates!

Unlike most other websites we deliver what we promise;

  • Our Support Staff are online 24/7
  • Our Writers are available 24/7
  • Most Urgent order is delivered with 6 Hrs
  • 100% Original Assignment Plagiarism report can be sent to you upon request.

GET 15 % DISCOUNT TODAY use the discount code PAPER15 at the order form.

Type of paper Academic level Subject area
Number of pages Paper urgency Cost per page:
 Total: