Computers and Technology

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

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 10:00, danthehero56
Which of the following is true of operations within a spreadsheet program’s built-in functions? a. operations within parentheses, then multiplication and division, and then addition and subtraction are computed. b. operations within parentheses, then addition and subtraction, and then multiplication and division are computed. c. multiplication and division, then addition and subtraction, and then operations within parentheses are computed. d. addition and subtraction, then multiplication and division, and then operations within parentheses are computed
Answers: 2
image
Computers and Technology, 22.06.2019 18:00, jabezslade22
What is the first view you place in your drawing?
Answers: 1
image
Computers and Technology, 23.06.2019 16:00, AM28
Does read theory have answers keys ?
Answers: 1
image
Computers and Technology, 23.06.2019 19:00, jacobbecker99
Choose the correct citation for the case which established the "minimum contacts" test for a court's jurisdiction in a case. select one: a. brown v. board of education of topeka, 347 u. s. 483 (1954). b. international shoe co. v. washington, 326 u. s. 310 (1945) c. haynes v. gore, 531 u. s. 98 (2000). d. international shoe co. v. washington, 14 u. s. code 336.
Answers: 1
Do you know the correct answer?
Bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- choc...

Questions in other subjects:

Konu
Arts, 25.11.2021 15:30