Question: I need this pseudocode coded into C + + I keep coming up with errors / / Pseudocode PLD Chapter 6 # 7 , pg
I need this pseudocode coded into C I keep coming up with errors
Pseudocode PLD Chapter # pg
Start
Declarations
num SIZE
num COFFEEPRICE
string productsSIZE"Whipped cream", "Cinnamon", "Chocolate
sauce", "Amaretto", Irish whiskey"
num pricesSIZE
num totalPrice
num choice
num SENTINEL
while choice SENTINEL
output "Please select an item from the Product menu by selecting
the item number or to terminate:
output "Product Price $
output
output Whipped cream
output Cinnamon
output Chocolate sauce
output Amaretto
output Irish whiskey
output "Please enter a positive number:
input choice
if choice then
if choice and choice then
totalPrice totalPrice priceschoice
output "Item number choice,": productschoice 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
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
