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, DestyHilBan1183
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
image
Engineering, 04.07.2019 18:10, Fahaddie
The thermal expansion or contraction of a given metal is a function of the f a)-density b)-initial temperature c)- temperature difference d)- linear coefficient of thermal expansion e)- final temperature f)- original length
Answers: 2
image
Engineering, 04.07.2019 18:10, caitlynnpatton1208
Water in a partially filled large tank is to be supplied to the roof top, which is 8 m above the water level in the tank, through a 2.2-cm-internal-diameter pipe by maintaining a constant air pressure of 300 kpa (gage) in the tank. if the head loss in the piping is 2 m of water, determine the discharge rate of the supply of water to the roof top in liters per second.
Answers: 3
image
Engineering, 04.07.2019 18:20, 1230bering
Select any two (2) areas of applications of chain-drive. (clo4) a)-permanent lubrication necessary b)-hydraulic forklift truck operation c)-rigging and heavy moving materials d)-relatively high maintenance costs e)-costlier than belt drives
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
English, 26.11.2020 21:00
Konu
Mathematics, 26.11.2020 21:00
Konu
Mathematics, 26.11.2020 21:00