A menu will show three items and their prices: (a) Carbonara 100php (b) Fries 80php (c) Chicken nuggets 150php. The user will choose among two food delivery services: (1) Foodie panda and (2) food-deliver.  After choosing the food delivery service, a discount and service charge for the item will be computed depending on the service chosen based on the table below.  Food Delivery Service Food Discount Delivery Charge (1)  Foodie panda 1% +10php (2) Food deliver 4% +30php Example:  (a) carbonara 100php (2) Food deliver Discount: 100php X .04 = 4.00  100-4 = 96 php discounted price Delivery charge: 96+30 = 126 php total payment my code: #Output menu print("Items: \n1. Carbonara 100php \n2. Fries 80php \n3. Chicken nuggets 150php.") #Prompt for input  choice = int(input("Enter item no: ")) quantity = int(input("Input quantity : ")) #Compare and assign price if choice==1:  price = 100 elif choice==2:  price = 80 elif choice == 3:  price =150 #compute total total = price*quantity #Output result print("Total : ",total," php")

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter6: Sub And Function Procedures
Section: Chapter Questions
Problem 27RQ
icon
Related questions
Question
100%

A menu will show three items and their prices: (a) Carbonara 100php (b) Fries 80php (c) Chicken nuggets 150php.

The user will choose among two food delivery services: (1) Foodie panda and (2) food-deliver.  After choosing the food delivery service, a discount and service charge for the item will be computed depending on the service chosen based on the table below. 

Food Delivery Service

Food Discount

Delivery Charge

(1)  Foodie panda

1%

+10php

(2) Food deliver

4%

+30php

Example: 

(a) carbonara 100php

(2) Food deliver

Discount: 100php X .04 = 4.00  100-4 = 96 php discounted price

Delivery charge: 96+30 = 126 php total payment

my code:

#Output menu
print("Items: \n1. Carbonara 100php \n2. Fries 80php \n3. Chicken nuggets 150php.")
#Prompt for input 
choice = int(input("Enter item no: "))
quantity = int(input("Input quantity : "))
#Compare and assign price
if choice==1:
 price = 100
elif choice==2:
 price = 80
elif choice == 3:
 price =150

#compute total
total = price*quantity
#Output result
print("Total : ",total," php")

Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Graphical User Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L