ffm5113 / 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.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.


Languages

Language:C++ 100.0%