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
If you were designing a bumper for a car, would you prefer it to exhibit elastic or plastic deformation? why? consider the functions of a bumper in both a minor "fender-bender" and a major collision.
Answers: 1
question
Engineering, 03.07.2019 15:10
Heat is added to a piston-cylinder device filled with 2 kg of air to raise its temperature 400 c from an initial temperature of t1 27 cand pressure of pi 1 mpa. the process is isobaric process. find a)-the final pressure p2 b)-the heat transfer to the air.
Answers: 1
question
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
question
Engineering, 04.07.2019 18:10
Different types of steels contain different elements that alter the characteristics of the steel. for each of the following elements, explain what the element does when alloyed with steel.
Answers: 2
You know the right answer?
// Pseudocode PLD Chapter 6 #7, pg. 268// // Start// Declarations// num SIZE = 5// num COFFEEPRICE =...
Questions
Questions on the website: 13722367