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.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter6: Modularity Using Functions
Section6.4: A Case Study: Rectangular To Polar Coordinate Conversion
Problem 9E: (Numerical) Write a program that tests the effectiveness of the rand() library function. Start by...
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr