subject

A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- chocolate chip muffin, $4.50 and 3- banana muffin, $9.98. You will write an application which calculates the total retail value of the sold muffins. Please check the following requirements: • Create a sentinel-controlled while loop. The flag value will be 0. Display flag value in your messages. • Display the menu and ask for the muffin number (int) (1 for blueberry one, 2 for chocolate chip one, or 3 for banana one). • Then, ask for the quantity sold for the related muffin (int). • Create a switch a statement to calculate the retail price for each muffin. • When the user terminates the application, display the total retail value (double) of all muffins. • Additionally, add an if-else statement to check whether the user only enters 1, 2, 3 or 0. If the user enters invalid input, display a message that the user can only enter 1, 2, 3

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 13:00
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
How many meatballs required for a larty of 25 adults and 6 children
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
A( the heart of an information system, is a collection of all relevant facts organized in a series of integrated files.
Answers: 1
question
Computers and Technology, 25.06.2019 08:00
What are good colleges to apply to if you got like a 2.5 as a gpa? already got a call back from gcu at least its a start rt
Answers: 2
You know the right answer?
A bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- cho...
Questions
question
History, 02.10.2020 18:01
question
Mathematics, 02.10.2020 18:01
question
History, 02.10.2020 18:01
question
Mathematics, 02.10.2020 18:01
question
Mathematics, 02.10.2020 18:01
question
Business, 02.10.2020 18:01
question
Advanced Placement (AP), 02.10.2020 18:01
question
Mathematics, 02.10.2020 18:01