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 x gallon. I C:Users\soh3252\Desktop\main.exe Enter the number of gallons: 98 Invalid entered Number Enter the number of gallons: 120 The corresponding number of ounces is 15360 "The cer number of gallons: 567 The corresponding number of ounces is 72576 Enter the number of gallons: 345 The corresponding number of ounces is 44160 Enter the number of gallons: 899 The corresponding number of ounces is 115072 Enter the number of gallons: 200 The corresponding number of ounces is 25600
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
