please code in python Assume you own a small cafeteria with very limited menu and you want to  automate the orders. You have a list of menu items, a list with the price of  these items. The number of elements in both lists should be the same. The  program then asks the customer how many elements he wants from each  item, then it should summarize the order of the customer and announce the  price to pay. You can use the function from the previous exercise to check  that the user enters a non-negative quantity each time. Assuming that we have: MENU_ITEMS=['karak','tea','coffee'] PRICE_LIST=[2,1,5] You should get a sample run similar to that: How many karak do you want? 3 How many tea do you want? 2.5 Please enter valid quantity. How many tea do you want? -2 Please enter valid quantity. How many tea do you want? 0 How many coffee do you want? 1 Your order is:  - 3 karak  - 0 tea  - 1 coffee Your total bill is 11 QAR.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

please code in python

Assume you own a small cafeteria with very limited menu and you want to 
automate the orders. You have a list of menu items, a list with the price of 
these items. The number of elements in both lists should be the same. The 
program then asks the customer how many elements he wants from each 
item, then it should summarize the order of the customer and announce the 
price to pay. You can use the function from the previous exercise to check 
that the user enters a non-negative quantity each time.
Assuming that we have:
MENU_ITEMS=['karak','tea','coffee']
PRICE_LIST=[2,1,5]
You should get a sample run similar to that:
How many karak do you want? 3
How many tea do you want? 2.5
Please enter valid quantity.
How many tea do you want? -2
Please enter valid quantity.
How many tea do you want? 0
How many coffee do you want? 1
Your order is:
 - 3 karak
 - 0 tea
 - 1 coffee
Your total bill is 11 QAR.

Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Linked List Representation
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education