Question: C++ programming d) Referring to the sample output, write a program that calculates the total price of ice-cream selected by user. Prompt the user to

C++ programming
d) Referring to the sample output, write a program that calculates the total price of ice-cream selected by user. Prompt the user to enter name, ice-cream flavor and quantity Use while loop to prompt the user for the correct flavor in the case that the user key in incorrectly Use switch case statement to determine the price based on the flavor Chocolate is RM3.50, Vanilla is RM3.00, and Strawberry is RM2.50 each Use do-while loop to repeat the process as long as the user r wants to Display the total bill Sample Output Welcome to Yummy Ice-Cream ******Ice-Crean Flavor********** (cChocolate (vl Vanilla (5) Strawberry Enter name Megan Enter Flavor Enter quantity: 2 Do you want to buy more? (Y-Yes N-NY Enter flavor Incorrect flavor. Re-enter flavor : 3 Enter quantity: 3 Do you want to buy more?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
