subject
Engineering, 14.03.2020 01:51 lucky1940

// Pseudocode PLD Chapter 6 #7, pg. 268// // Start// Declarations// num SIZE = 5// num COFFEEPRICE = 2.00// string products[SIZE]="Whipped cream", "Cinnamon", "Chocolate sauce", "Amaretto", ""Irish whiskey"// num prices[SIZE]=0.89, 0.25, 0.59, 1.50, 1.75// num totalPrice = 0// num choice = 0// num SENTINEL = -1 while (choice <> SENTINEL))// output "Please select an item from the Product menu by selecting the item number (1 - 5) or -1 to terminate: "// output "Product Price ($)"// output " "// output "1. Whipped cream 0.89"// output "2. Cinnamon 0.25"// output "3. Chocolate sauce 0.89"// output "4. Amaretto 1.50"// output "5. Irish whiskey 1.75"// output "Please enter a positive number: "// input choice// if (choice <> -1) then// if ((choice >= 1) and (choice <= 5)) then// totalPrice = totalPrice + prices[choice-1]// output "Item number ", choice,": ", products[choice-1], " has been added"// else// output "Item number ",choice, " is not valid", "Sorry we do not carry that item"// endif// endif// endwhile// totalPrice = totalPrice + COFFEEPRICE// output "Total price of order is ",totalPrice// output "Thanks for purchasing from Jumpin Jive Coffee Shop"// Stop

ansver
Answers: 1

Another question on Engineering

question
Engineering, 03.07.2019 15:10
Ahouse has the following electrical appliance usage (1) single 40w lamp used for 4 hours per day (2) single 60w fan used for 12 hours per day (3) single 200w refrigerator that runs 24 hours per day with compressor run 12 hours and off 12 hours find the solar power inverter size in watt with correction factor of 1.25.
Answers: 1
question
Engineering, 03.07.2019 23:20
Two technicians are discussing the intake air temperature (iat) sensor. technician a says that the computer uses the iat sensor as a backup to the engine coolant temperature (ect) sensor. technician b says that the powertrain control module (pcm) will subtract the calculated amount of fuel if the air measures hot. who is correct
Answers: 3
question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
If a particle moves along a path such that r : (3 sin t) m and ? : 2t rad, where t is in seconds. what is the particle's acceleration in m/s in 4 seconds? a)- 16.43 b)- 16.29 c)- 15.21 d)- 13.79
Answers: 1
You know the right answer?
// Pseudocode PLD Chapter 6 #7, pg. 268// // Start// Declarations// num SIZE = 5// num COFFEEPRICE =...
Questions
question
Mathematics, 04.05.2021 22:10
question
Mathematics, 04.05.2021 22:10
question
Mathematics, 04.05.2021 22:10
Questions on the website: 13722363