Create a python code that: RESTAURANT MENU A line of customers is piling up to your restaurant trying to buy from your menu. (Menu is based on you, minimum of 3 items). Each customer can order any number of each item Input: Number of customers. For each customer, they need to be able to input the number of each item in the menu they can order and their payment Process: If the payment is below the total amount of their order, ignore that customer’s order. The order should be inputted as a string. If the value is not applicable, just ignore that item. Output: Calculate your total sales and the total change. Example: MENU FOR TODAY --------------------------- A – Burger: 30.00 B – Fries: 10.00 C – Drinks: 11.00 Input number of customers: 1 Customer 1 Payment: 1000 Customer 1 Order: A1B3A2A1C5B4D8FJ …. Total Sales: 245 (Not part of the output: A1 = 1 burger, C5 = 5 drinks, D8 & FJ = ignore) Total Change: 755
Create a python code that:
RESTAURANT MENU
A line of customers is piling up to your restaurant trying to buy from your menu. (Menu is based on you, minimum of 3 items). Each customer can order any number of each item
Input:
Number of customers. For each customer, they need to be able to input the number of each item in the menu they can order and their payment
Process:
- If the payment is below the total amount of their order, ignore that customer’s order.
- The order should be inputted as a string. If the value is not applicable, just ignore that item.
Output:
Calculate your total sales and the total change.
Example:
MENU FOR TODAY
---------------------------
A – Burger: 30.00
B – Fries: 10.00
C – Drinks: 11.00
Input number of customers: 1
Customer 1 Payment: 1000
Customer 1 Order: A1B3A2A1C5B4D8FJ
….
Total Sales: 245 (Not part of the output: A1 = 1 burger, C5 = 5 drinks, D8 & FJ = ignore)
Total Change: 755
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 1 images