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.
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.
Step by step
Solved in 2 steps with 1 images