Develop a C++ program that uses a while statement to input the
miles driven and gallons used for each trip by an automobile. The
program should calculate and display the miles per gallon obtained
for each trip and print the combined miles per gallon obtained for all
tankful up to this point.
Exp:
Enter miles driven (-1 to quit): 287
Enter gallons used: 13
MPG this trip: 22 .07
Total MPG: 22.07
Enter miles driven (-1 to quit): 200
Enter gallons used: 10
MPG this trip: 20.00
Total MPG: 21 .67
Answers
Answered by
2
Answer:
c465477664:;+((?!₹##37)!;:
Similar questions
Science,
3 months ago
Math,
3 months ago
Math,
6 months ago
Social Sciences,
6 months ago
Social Sciences,
10 months ago
Math,
10 months ago
Physics,
10 months ago