# ice_cream_cone.py # modified from LEO # 4 flavor choices, 1-3 scoops (2 is 150% of 1, 3 is 200% of 1) print("Welcome to UberIces.") print("Your flavor choices are Vanilla, Chocolate, Strawberry, and the Two flavor combo") print("You can order 1, 2, or 3 scoops. (2 is 50% more than 1, 3 is 100% more than 1)") flavor = input("What flavor of Ice cream ?\n V=Vanilla \n C=Chocolate \n S=Strawberry \n T=two flavor combo ") if flavor!='V' and flavor!='C' and flavor!='S' and flavor!='T': print("*** Invalid selection of Ice Cream flavor") quit() scoops = int(input("How many scoops (1-3) ")) if scoops <= 0 or scoops > 3: print("*** Invalid selection of number of scoops. Must be 1, 2, or 3 ") quit() if flavor=='V' or flavor=='C': iceCreamCost = 1.25 elif flavor == 'S': iceCreamCost = 1.50 elif flavor == 'T': iceCreamCost = 2.00 if scoops == 1: scoopCostFactor = 1 elif scoops == 2: scoopCostFactor = 1.5 elif scoops == 3: scoopCostFactor = 2 totalCost = round(iceCreamCost * scoopCostFactor, 2) print("The price of your ice cream cone is: $", totalCost)