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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 12:00, dani19cano
The following function returns a string of length n whose characters are all 'x'. give the order of growth (as a function of n) of the running time. recall that concatenating two strings in java takes time proportional to the sum of their lengths. public static string f(int n) { if (n == 0) return ""; if (n == 1) return "x"; return f(n/2) + f(n - n/2); } options: a) constant b) logarithmic c) linear d) linearithmic e)quadratic f)cubic g) exponential
Answers: 2
image
Computers and Technology, 22.06.2019 17:30, babyface1686
How do you make a lenny face? plz, brailiest to who can answer first.
Answers: 1
image
Computers and Technology, 23.06.2019 01:30, shelley3135
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, evanwall91
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
You know the right answer?
Bakery sells three types of muffins whose prices are as follows: 1- blueberry muffin, $2.98 2- choc...

Questions in other subjects:

Konu
Physics, 26.08.2020 21:01