Answer:
The code is as follows
Step-by-step explanation:
Declarations are as below
Label titleLabel
Label Scoop
Label Flavor
Label Topping
RadioButton Scoopl
RadioButton Scoop2
RadioButton Scoop3
RadioButton Flavorl
RadioButton Flavor2
RadioButton Flavor3
CheckButton Toppingl
CheckButton Topping2
CheckButton Topping3
orderRoutine()
if Scoops = "Three Scoop" then
price = 4
else
if Scoops = "Two Scoop" then
price = 3
else
price = 2.20
endif
endif
Tprice=price+sum(Topping)*0.5
return Tprice;