Monday 17 March 2014

Gas Mileage formula in C

Posted by Саша 03:12, under | No comments


Gas Mileage formula in C++? Gas Mileage formula in C++?

I have 4 member names that I have to determine the Gas Mileage in the a vehicle.
My program will ask the user for Mileage (Odometer Reading), Gas Tank size, Trip (Trip Odometer), and Gas Remaining (Amount of Gas left in the tank).

How can I come up with a formula to determine the gas mileage?


Other Answers:




Mileage = distance / GallonsUsed









0 коммент.:

Post a Comment