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
Math,
3 months ago
Math,
8 months ago
Social Sciences,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Physics,
1 year ago