Answered step by step
Verified Expert Solution
Link Copied!

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 $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.0
if pizzaSize =='M':
pizzaPrice =12.0
elif pizzaSize =='L':
pizzaPrice =15.0
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)
Is this order for an employee? Enter 'Y' for yes, anything else for no.Y
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 99 7th International Conference Jerusalem Israel January 10 12 1999 Proceedings Lncs 1540

Authors: Catriel Beeri ,Peter Buneman

1st Edition

3540654526, 978-3540654520

More Books

Students also viewed these Databases questions

Question

Distinguish between poor and good positive and neutral messages.

Answered: 1 week ago

Question

Describe the four specific guidelines for using the direct plan.

Answered: 1 week ago