Question: Write a C++ program that accepts 5 values of a gallon, one at a time. If the entered value less than 100, your program should
Write a C++ program that accepts 5 values of a gallon, one at a time. If the entered value less than 100, your program should print a message informing the user that an invalid gallon value has been entered. Then, before the next value is requested, the program converts each value entered into a corresponding ounce. In your program, use a do-while loop. Use the fact that ounces = 128 gallon.
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
