Question: Can you fix the errors please and copy paste the final code and screenshot the output. thank you #menu that has to be printed print(

Can you fix the errors please and copy paste the final code and screenshot the output. thank you

#menu that has to be printed

print(

'''Meal code package price

102 chicken & spaghetti 150

103 Hamburger & Fries 145

104 Cheesedog 100

105 Pizza 80

Drinks Code Size Price

211 Small 30

212 Medium 35

213 Large 40'''

)

#taking input in meal order

Meal = int(input("Meal : "))

#taking input in drinks order

Drinks = int(input("Drinks : "))

#string that will show orders

order = ""

#meal price

Meal_price = 0

#drink price

Drink_price = 0

#if meal == 102

if(Meal == 102):

#then order will be following

order = order + "chicken & spaghetti"

#accordingly change its price

Meal_price = 150

elif(Meal ==103):

order = order + "Hamburger & Fries"

Meal_price = 145

elif(Meal == 104):

order = order + "Cheesedog"

Meal_price = 100

elif(Meal==105):

order = order + "Pizza"

Meal_price = 80

else :

print("please enter correct Meal code ! ")

#for drink first see the drink code and accordingly add order and price

if(Drinks == 211):

order = order + " and " + "Small Drinks"

Drink_price = 30

elif(Drinks == 212):

order = order + " and " + "Medium Drinks"

Drink_price = 35

elif(Drinks == 213):

order = order + " and " + "Large Drinks"

Drink_price = 40

#quanity - taking input

quantity = int(input("quantity : "))

#calculating amount

amount = (Drink_price + Meal_price) * quantity

#showing amount to user

print("Amount : ",amount)

#taking input in cash

cash = int(input("Enter Cash Tendered : "))

#calculating change

change = cash - amount

#if change >=0 then print change

if(change >=0 ):

print("Change : ",change)

else:

#otherwise

print("Not enough money..")

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!