Homework 7, Coordinate This

Short Description:

Write a program which allows a user to maintain a set of waypoints.

This assignment is worth 100 points.

Goals

When you finish this homework, you should:

Formal Description

A waypoint is a location, typically used for navigation. For the purposes of this assignment, a waypoint will consist of a name, a coordinate, and a description.

For this assignment, you should create waypoint and coordinate classes. Your classes should provide methods creating, modifying and interacting with the class. These methods should include the ability to compare instances of the class.

  • To test your classes write the following program:

    Read in a list of waypoints from the file specified as the first argument to the program. If no argument is given, read waypoints.wpt. This file will have the following format:

    You should store the waypoints in a list, as described in chapter 13.

    Your program should then provide an interactive interface which will allow the user to perform the following tasks:

    Deriving the distance between two objects on the Earth is more complex that this assignment requires, so A) Assume the points are close enough that the Earth is essentially flat and B) Just use the Euclidean distance between two points.

    You should be able to print coordinates in three different formats:

    A handy conversion calculator is here You should allow the user to set the output format for coordinates in your main main menu.

    Discussion

    Required Files

    You should submit the following in a tar file: You should not submit

    Submission

    Please create a tar file containing the files described above. Email this file to danbennett360@gmail.com by class time of the due date.