CS1020 -- Lab 2: GPS Analyzer

Winter 2004
Objectives Addressed
Overview

In completing this assignment, you will develop a software application to analyze GPS data.

Assignment

In instructor assigned teams of two you are to design and implement a software package that will analyze GPS data.

Potentially Interesting Results

Your program is required to calculate the answers to at least three of the *'d items.

GPS Datafile

There are three GPS data files available to you: smallgps.zip, gps.zip, and biggps.zip. Each file contains GPS data from multiple trips. Each trip represents one trip in my car. Typically these trips are either from my home to MSOE or back. The first few lines of the gps.zip file (unzipped) are:

Start time: 2004-03-05 11:09:23
record,fix,hour,min,sec,msec,latitude,longitude,alt
1,3,11,9,24,710,43.0835367,-88.0390017,702.09
2,3,11,9,26,310,43.0835367,-88.0390017,702.09
3,3,11,9,27,310,43.0835367,-88.0390017,702.09
...

The first line indicates the starting time for the first trip. The second line contains labels for the different fields associated with each record. The third line contains the data associated with the first data record. Each record includes (separated by commas) the record number, the number of satellites used to get a fix on the GPS receiver's position, the time the record was made (in hours, minutes, seconds, and milliseconds), the latitude, longitude, and altitude. These records continue until the end of the trip. Data for the second trip follow immediately after the first trip. In this particular example, the first trip has 1336 records. Here are lines 1337-1345 of the data file:

1335,4,11,31,52,750,43.0445550,-87.9081050,639.76
1336,4,11,31,53,750,43.0445550,-87.9081033,639.76
Start time: 2004-03-05 17:10:35
record,fix,hour,min,sec,msec,latitude,longitude,alt
1,3,17,10,36,380,43.0445983,-87.9081033,583.98
2,3,17,10,37,380,43.0445950,-87.9081017,583.98
3,3,17,10,38,380,43.0445917,-87.9081000,583.98
4,3,17,10,39,380,43.0445917,-87.9081033,587.27
5,3,17,10,40,380,43.0445850,-87.9081067,587.27

Note: Your program should work on all three files although it may take a significant amount of time to process the larger files.

Design and Activity logs (due 11:00pm, the day prior to week 5 and 6 labs) (15 points)

You should submit a partial laboratory report each week that includes your design documentation and your activity log. You design documentation should identify the class(es) and associated methods you will implement to complete the assignment.

Use the lab 2 template file to use as a starting point for this report. You can just leave the other sections blank.

Intermediate Demonstration (due beginning of week 5 lab) (15 points)

You should write a program that will ask the user to enter a trip number (N) and entry number (M) and display the latitude, longitude, and altitude for the M'th entry in the N'th trip in the smallgps.zip datafile.

At the beginning of lab, I will give you an N and M and ask you to demonstrate your program for me.

Final Lab report (due 11:00pm, the day prior to the week 7 lab) (70 points)

Continue using the XML file that you submitted in week 5.

The lab report need not be self-contained. Your report should include:

As with any report you submit, correct spelling and grammar are required. In addition, your report should be submitted electronically following the Electronic submission guidelines. (You may wish to consult the XML help video and/or sample report before submitting your report.) Be sure to keep copies of all your files, in case something gets lost.

Your grade will depend on quality of design, clarity of code and documentation, as well as whether your program produces the correct results. If you have any questions, consult your instructor.

Acknowledgment

This laboratory assignment was developed by Dr. Chris Taylor.

Last Updated: Thursday, 01-Jan-2015 13:30:07 CST