Question: car s miles - per - gallon ( MPG ) can be calculated with the following formula: Design a program that asks the user for

cars miles-per-gallon (MPG) can be calculated with the following formula:
Design a program that asks the user for the number of miles driven and the gallons of gas used. It should calculate the cars miles-per-gallon and display the result on the screen.
Modify the program to make sure the maximum number of gallons used is not over 30.
Also modify the program to make sure the number of miles driven is not less than 1.
Type the Answer in a FLOWCHART.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!