Now that you have determined the delivery fee for the pizza company, you want to develop the code that will determine the price of a pizza.
The first rule that you want to code is that employees get free pizza. Employees can order whatever they want for $0.00.
Your manager has been trying to learn to code as well. They have written the following code to give employees their discount.
isEmployee = input("Is this order for an employee? Enter 'Y' for yes, anything else for no.")
pizzaSize = input("What size pizza do you want? Enter 'L' for large or 'M' for medium.")
if isEmployee == True:
pizzaPrice = 0.00
if pizzaSize == 'M':
pizzaPrice = 12.00
elif pizzaSize == 'L':
pizzaPrice = 15.00
else:
print("That is not a valid pizza size.")
print(pizzaPrice)
Assume the user enters 'Y' (without the quotes) for the first prompt and 'L' for the second prompt (as shown in the example below)
1. Is this order for an employee? Enter 'Y' for yes, anything else for no.
2. What size pizza do you want? Enter 'L' for large or 'M' for medium.
3. What will display once the code has finished running?