program that takes the distance of the commute in kilometers,the car fuel consumption rate in kilimeter per gallon and price of gallon of petrol as input. The program should then display the cost of the commute.
Answers
Answered by
1
Use your trip odometer to see how many miles you traveled total, then divide this by gallons to get your average fuel consumption. While this is the exact number of miles per gallon during your test period, it is a good estimate for your car's average fuel consumption
Similar questions