Write a program for keeping a driving diary. Program is used to record and store trips that a person makes with his/hers car. The program stores following information about each trip: • Start location Start time • Odometer value at the start of the trip • End location • End time • Odometer value at the end of the trip • The amount of fuel you bought during the trip (does not necessarily apply to every trip) The program must have (at least) following commands:
- Initialize (clear all trip information)
- Save trip data to file
- Read trip data from file
- Add a new trip
- Remove a trip Print a report. Program asks user to enter upper and lower limit of driven distance and prints trips where the driven distance is in the specified range
- Calculate average fuel consumption based on the driven distance and bought fuel.