Question: C++ Help Coding This Please! Create a program that asks the user to enter the price of an item. After the user enters a price,
C++ Help Coding This Please!
Create a program that asks the user to enter the price of an item. After the user enters a price, ask them if they have another price to enter. If they type Y or y then prompt them to enter another price, if they type any other character then print out the total of all of the prices that were entered.
The user be prompted to enter the first price at the beginning, then after doing so should be asked if they have another entry. Use a do-while loop for this program.
Create a flowchart for this program and upload to your repl. Your flowchart must match your code! This can be a drawing/picture or a digital version, so long as it is clearly readable.
Useful site: app.diagrams.net (for generating flowcharts not required but a possible option)
Sample run (user input in ):
Enter the price of an item: <5.99>
Do you want to input another price (Y/N)?:
Enter the price of an item: <3>
ERROR: Prices cannot be negative.
Do you want to input another price (Y/N)?:
Enter the price of an item: <4.50>
Do you want to input another price (Y/N)?:
Enter the price of an item: <1.29>
Do you want to input another price (Y/N)?:
Your total is $11.78. Thank you for shopping with us!
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
