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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 18:10, hadellolo8839
Acompressor receives the shaft work to decrease the pressure of the fluid. a)- true b)- false
Answers: 3
image
Engineering, 04.07.2019 18:10, winterblanco
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
image
Engineering, 04.07.2019 18:10, colin774
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
image
Engineering, 04.07.2019 18:10, jojoangelique13
The flow rate of air through a through a pipe is 0.02 m5/s. a pitot static tube is placed in the flow. the radius of the pitot static tube is 1 mm. assuming the flow to be steady and the air to be at 300k, calculate the difference in total and static pressure if the diameter of the pipe is: (a) d 0.1 m d 0.05 m (c) d 0.01 m
Answers: 2
You know the right answer?
// Pseudocode PLD Chapter 6 #7, pg. 268// // Start// Declarations// num SIZE = 5// num COFFEEPRICE =...

Questions in other subjects:

Konu
History, 28.04.2021 02:10