Answered step by step
Verified Expert Solution
Link Copied!

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
(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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Antipatterns Avoiding The Pitfalls Of Database Programming

Authors: Bill Karwin

1st Edition

1680508989, 978-1680508987

More Books

Students also viewed these Databases questions