e about to embark on a trip. You know your start and finish locations. However, you have not settled on a formal route for the trip. You will use Google Maps for your trip. To help make the decision, we will create a trip planning report. The user will enter three alternate routes for the trip which will have different mileages but will use the same starting and finishing locations. This program can be used to create a trip report regardless of the mileage of the trip. The input menus will not specify the route, but will: • Show a descriptive route name • A mileage value • An estimated time (to the nearest decimal - remember, 6 minutes, is 1/10 of an hour- The user may adjust the time if they wish ) from Google Maps. • If the route is expected to have any direct route expenses (tolls, ferries, etc.) • A default value Menu example: • Menu 1 - Tampa, Florida via I-75 | 1067.00 |15.33 | N
You are about to embark on a trip. You know your start and finish locations. However, you have not settled on a formal route for the trip. You will use Google Maps for your trip. To help make the decision, we will create a trip planning report. The user will enter three alternate routes for the trip which will have different mileages but will use the same starting and finishing locations. This
The input menus will not specify the route, but will:
• Show a descriptive route name
• A mileage value
• An estimated time (to the nearest decimal - remember, 6 minutes, is 1/10 of an hour- The user may adjust the time if they wish ) from Google Maps.
• If the route is expected to have any direct route expenses (tolls, ferries, etc.)
• A default value
Menu example:
• Menu 1 - Tampa, Florida via I-75 | 1067.00 |15.33 | N
• Menu 2 - Tampa, Florida via I-77 | 1028.00 | 15.33 | N
• Menu 3 - Tampa, Florida via I-65 | 1124.00 | 16.10 | N
For the final project, you will develop a menu driven trip reporting project which will deliver the following:
Input
Prior just selecting the menus, the users will be required to enter specific, housekeeping trip information items which will be used in the above calculations. This will allow the program to be used for the various scenarios and conditions. I do not want any constants or hard-coded variables in the program unless they are specifically needed for calculation purposes. The user-specified info required shall be the following:
• Current cost per gallon for fuel
• Current cost per mile for maintenance.
• Expected fuel mileage for the vehicle.
• Any estimated tolls or direct travel expenses related to the trip. This would include tolls, ferries, extra charges, etc.
All input fields shall be labeled clearly and concisely
Output
A trip report which will provide an output to the screen of the following items:
• Start and End Dates formatted (DD/MM/YYYY)
• Trip origin and destination / Route
• Mileage formatted to two decimal places (F2)
• Expected fuel consumption for each trip - Total gallons of fuel consumed (F2)
• Expected time for each trip is rounded to a nearest quarter hour (F2)
• Average speed for each trip (F2)
• Costs for the trip, including maintenance, tolls and/or direct travel expense and fuel costs, all listed as line item costs and then summarized to provide a comprehensive trip report. ($F2)
NOTE: Code Use C++
Step by step
Solved in 2 steps