Professional Documents
Culture Documents
shape “ ”
color “ “
choice 0
depth 0
diameter 0
batch_size 20
volume 0.0
totalvolume 0.0
price 0.0
grey_price 0.0
pi 3.142
setupcost 5
ELSE
OUTPUT “Wrong shape selected”
END IF
CASE color OF
CASE “grey”: price (totalvolume / 100000) * grey_price
CASE “red”: price (totalvolume / 100000) * grey_price * 0.1
CASE “green”: price (totalvolume / 100000) * grey_price * 0.1
CASE “custom”: price ((totalvolume / 100000) * grey_price * 0.15) + setupcost
OTHERWISE: OUTPUT “Wrong Color Selected”
ENDCASE