Question: Sample output 1 Enter the gallons used ( - 1 . 0 to end ) : 1 2 . 8 Enter the miles driven: 2
Sample output
Enter the gallons used to end:
Enter the miles driven:
The miles gallon for this tank was
Enter the gallons used to end:
Enter the miles driven:
The miles gallon for this tank was
Enter the gallons used to end:
Enter the miles driven:
The miles gallon for this tank was
Enter the gallons used to end:
The overall average miles gallon was
That's all folks press any key to exit
Sample output
Enter the gallons used to end:
You have entered an invalid value for gallons, try again:
The overall average miles could not be computed
That's all folks press any key to exit
Sample output
Enter the gallons used to end:
You have entered an invalid value for gallons, try again:
You have entered an invalid value for gallons, try again:
You have entered an invalid value for gallons, try again:
Enter the miles driven:
You have entered an invalid value for miles, try again:
You have entered an invalid value for miles, try again:
The miles gallon for this tank was
Enter the gallons used to end:
You have entered an invalid value for gallons, try again:
You have entered an invalid value for gallons, try again:
You have entered an invalid value for gallons, try again:
Enter the miles driven:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
