Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Task 4 ( 5 5 marks ) For this task, you are required to write a Python program for an inventory management system designed to
Task marks
For this task, you are required to write a Python program for an inventory management system designed to manage an electronics store.
Instructions
Electronics Store Inventory Management System consists of the following parts:
Product Information:
Each electronic product is uniquely identified by a product code. Product information includes the product name, brand, category, price, and available stock. Use a list of dictionaries to represent the products, where each dictionary contains information about a specific product.
Supplier Information:
Each supplier is uniquely identified by a supplier code. Supplier information includes the supplier name, contact details, and a list of products they supply. Use a dictionary to represent the suppliers, where each key is the supplier code, and the corresponding value is a dictionary containing supplier details.
Inventory Functions: you must implement the following functions:
addproductproducts productcode, productname, brand, category, price, stock
addsuppliersuppliers suppliercode, suppliername, contactdetails
searchproductproducts productcode
displayproductsproducts
displaysupplierssuppliers
updatestockproducts productcode, newstock
The methods should interact with the product and supplier information using appropriate data structures.
Menu Options: Implement a menu function that displays the following options:
: Add Product
: Add Supplier
: Search Product
: Display Products
: Display Suppliers
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