Skip to content

The Vehicle Fleet Text File Reader Program (C++) uses a loop to read a file named FleetInput.txt, which holds vehicle ID, miles, and gallons space delimited on each row. Then, the program calculates the fleet average and individual average miles per gallon (MPG), displaying the results in the console are tabular output.

Notifications You must be signed in to change notification settings

heyfoz/cpp-vehicle-fleet-txt-file-reader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

cpp_vehicle_fleet_txt_file_reader

The Vehicle Fleet Text File Reader Program (C++) uses a loop to read a file named FleetInput.txt, which holds vehicle ID, miles, and gallons space delimited on each row.

Then, the program calculates the fleet average and individual average miles per gallon (MPG), displaying the results in the console are tabular output.

Additionally, the program identifies the worst and best MPG in the fleet.

Link to .cpp file: Vehicle Fleet Text File Reader C++ Program

Copyright (c) 2022 ffm5113

About

The Vehicle Fleet Text File Reader Program (C++) uses a loop to read a file named FleetInput.txt, which holds vehicle ID, miles, and gallons space delimited on each row. Then, the program calculates the fleet average and individual average miles per gallon (MPG), displaying the results in the console are tabular output.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages