inventory = {
"Product A": {"stock": 50, "threshold": 20, "cost": 10.0},
"Product B": {"stock": 15, "threshold": 10, "cost": 15.0},
"Product C": {"stock": 5, "threshold": 5, "cost": 20.0},
customer_orders = [
{"product": "Product A", "quantity": 10},
{"product": "Product B", "quantity": 5},
{"product": "Product C", "quantity": 6}, # Note: This exceeds available
stock
1. Check Inventory Levels:
Write a function to check which products need reordering
based on their threshold values.
Print a message indicating which products require reordering.
2. Process Customer Orders:
Iterate through the customer_orders list and process each
order.
For each order:
Check if the requested quantity is available in stock.
If sufficient stock is available:
Deduct the quantity from the inventory.
Calculate the revenue generated from the order.
If insufficient stock is available:
Print a message indicating the order cannot be
fulfilled due to low stock.
Track the total revenue generated from all fulfilled orders.
Generate a Final Report:
Display the updated inventory levels after processing all orders.
Print the total revenue generated.
Indicate which products still need reordering.