Question: 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
(i.e. 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 (+3)
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 5 fridges for $100 each, the total revenue is $500.
Example:
Choose a selection:
Add/edit 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
>5
Enter the name of the product: fridge
Enter the price of the product: 100
Predicted revenue: $500.00
 Inventory Manager Create a program that a store manager could use

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!