Question: DATA STRUCTURES & OTHER OBJECTS Using C++ Please provide header file[.h] , driver file,[.cpp] and main file [.cpp] Please provide your code and screenshot of

DATA STRUCTURES & OTHER OBJECTS Using C++

Please provide header file[.h] , driver file,[.cpp] and main file [.cpp]

Please provide your code and screenshot of how your code ran.

You are going on a roadtrip with a few friends. Instead of using one of the easy to use roadtrip websites, you decide to program your own system. Essiantially your own Global Positioning System(GPS)

Your Top-Design program must support an "unlimited" number of stops. Each stop should have a descriptive name and the distance in miles from the last stop. For example, the first stop might be Philadelphia PA with a distance of 15 miles, if we assume we start at Rowan University in Glassboro NJ. The next stop might be Pittsburgh PA with a distance of 300 miles. The total distance from Rowan University to Pittsburgh PA is 315 miles, but we only worry about distances between stops. Additionally, you program must support the following use cases: * a user wants to know what the Xth stop is * a user wants to remove a stop (this should also update the mileage... if I removed Philadelphia, the distance to Pittsburgh should be updated to 315) * a user wants to know the total mileage, total # of stops, mileage between two arbitrary stops * a user certainly doesn't want memory leaks I'm not placing any constraints on your implementation other than the stops must be stored in a linked list. Further, templates are NOT required. You need to turn in all classes you create and a test program that creates a few stops and demonstrates all the use cases. Hints: * Create your own node with the stop information built in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!