Skip to content

Opening book details…

About this document

MPG Calculation Program by meihuunkoosh is a document available to read on EtoBox.

This C++ program calculates miles per gallon (MPG) for individual trips and total MPG over multiple trips. It prompts the user to enter miles driven and gallons used, then computes and displays the MPG for each trip and the cumulative MPG. The program continues to accept input until the user enters -1 to quit.

Author
meihuunkoosh
Language
EN