Computer Science, asked by djbudhrani, 11 months ago

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 BadBoy1810
1

\huge\underline\mathfrak\purple{Solution}

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