Skip to content

Ahmedaltu/Driving_Diary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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:

  1. Initialize (clear all trip information)
  2. Save trip data to file
  3. Read trip data from file
  4. Add a new trip
  5. 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
  6. Calculate average fuel consumption based on the driven distance and bought fuel.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages