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, 04.07.2019 18:10
Manometers are good examples of measuring instruments, nowadays they are not as common as before. a)-capacitive probe gauges b)-gravitational gauges deformation ) gauges d)-digital gauges
Answers: 1
question
Engineering, 04.07.2019 18:10
Ahot wire operates at a temperature of 200°c while the air temperature is 20°c. the hot wire element is a tungsten wire of 5 um diameter and 2 mm in length. plot using excel current, heat transfer and heat generated by the wire for air velocity varying from 1-10 m/s in steps of lm/s? matlab the sensor voltage output, resistance, or assume nu 0.989 re033pr13 take air properties at tr (200°c20°c)/2 = 110°c properties of tungsten: c 0.13 kj/kg.k 3 p 19250 kg/m k (thermal conductivity) = 174 w/m.k
Answers: 2
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
question
Engineering, 04.07.2019 19:10
What are the major differences between injection molding and extrusion?
Answers: 2
You know the right answer?
// Pseudocode PLD Chapter 6 #7, pg. 268// // Start// Declarations// num SIZE = 5// num COFFEEPRICE =...
Questions
question
Mathematics, 16.12.2020 21:30
question
World Languages, 16.12.2020 21:30
question
Computers and Technology, 16.12.2020 21:30
question
Mathematics, 16.12.2020 21:30
question
Social Studies, 16.12.2020 21:30
Questions on the website: 13722361