Question: Write a program that will compute MPG for a car. Prompt the user to enter the number of miles driven and the number of gallons
Write a program that will compute MPG for a car. Prompt the user to enter the number of miles driven and the number of gallons used. Print a nice message with the answer.
Step by Step Solution
3.42 Rating (152 Votes )
There are 3 Steps involved in it
To solve this problem we need to write a simple program that calculates the miles per gallon MPG for a car This involves taking user input for the num... View full answer
Get step-by-step solutions from verified subject matter experts
