Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 $
Your manager has been trying to learn to code as well. They have written the following code to give employees their discount.
isEmployee inputIs this order for an employee? Enter Y for yes, anything else for no
pizzaSize inputWhat size pizza do you want? Enter L for large or M for medium."
if isEmployee True:
pizzaPrice
if pizzaSize M:
pizzaPrice
elif pizzaSize L:
pizzaPrice
else:
printThat is not a valid pizza size."
printpizzaPrice
Assume the user enters Ywithout the quotes for the first prompt and L for the second prompt as shown in the example below
Is this order for an employee? Enter Y for yes, anything else for noY
What size pizza do you want? Enter L for large or M for medium.L
What will display once the code has finished running?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started