subject

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. 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 or 0. then, ask for new input. (8 pts) upl

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:40
Mariah was working on a multimedia presentation that included both video and audio files. the file was huge, and she wanted to send it to her coworker in another office. she needed to reduce the size of the file so that it could be transmitted faster. the utility she used to do this was
Answers: 2
question
Computers and Technology, 22.06.2019 21:50
Given int variables k and total that have already been declared, use a while loop to compute the sum of the squares of the first 50 counting numbers, and store this value in total. thus your code should put 11 + 22 + 33 + + 4949 + 50*50 into total. use no variables other than k and total.
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
Which statement is true of web-based social media? a.they allow consumers to interact with and update content. b.they cannot be updated easily, as compared to print media. c.they are expensive to produce and maintain, as compared to print and television. d.they can exist independent of the internet.
Answers: 1
question
Computers and Technology, 23.06.2019 22:00
Take a critical look at three gui applications you have used—for example, a spreadsheet, a word-processing program, and a game. describe how well each conforms to the gui design guidelines listed in this chapter.
Answers: 3
You know the right answer?
Bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- choc...
Questions
question
Mathematics, 28.01.2020 01:31
Questions on the website: 13722359