Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Inventory Manager Create a program that a store manager could use to keep track of their product inventory ( i . e . Store the
Inventory Manager
Create a program that a store manager could use to keep track of their product inventory
ie Store the type of item key and the amount of items value in the inventory
The user should be able to:
Add edit products
Find a product by name
Remove a product by name
Constraints:
When adding a product, the quantity in stock must be a positive integer or zero. Invalid numbers should not throw an exception.
See the examples in the Replit extra help.
When finding or deleting a product, if the specified product is not found, then the program should not raise a KeyError.
BONUS
Add an additional option that allows a user to predict the amount in revenue for a given product if they enter a price. Negative prices must not be allowed.
Note that the dictionary does NOT store the price It stores the quantity.
You'll need to ask the user for the price of the item to determine the amount in revenue the company would make off that product.
For example, if we sell fridges for $ each, the total revenue is $
Example:
Choose a selection:
Addedit a product in the inventory
Find the amount of items in stock for a product
Delete a product by name
Display all products and amount in stock
Predict revenue based on unit price
Exit
Enter the name of the product: fridge
Enter the price of the product:
Predicted revenue: $
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started