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
Inventory Functions: you must implement the following functions:
addproductproducts productcode, productname, brand, category, price, stock
searchproductproducts productcode
displayproductsproducts
displaysupplierssuppliers
updatestockproducts productcode, newstock
Menu Options: Implement a menuct and supplier information using appropriate data structures.
: Add Product
: Add Supplie
: Search Product
: Display Suppliers
EIPSumipynb is
Help Changes will not be saved
Code Text a copy to Drive
: Add Supplier
: Search Product
: Display Suppliers
: Update Stock
: Exit
Main function: Create a main function that initialises empty lists and dictionaries for products and suppliers.
option.
Ensure that the program handles scenarios such as searching for a nonexistent product or updating the stock of a nonexistent product.
Requirements
the following requirements
solution. Additionally, your solution must adhere to
You must ensure that the hours at the outputs do not use string concatenation
The system should utilis
Ensure that the inventory functions provicude appropriate formatting for better readability
Ensure that the inventory functions provide informative messages to the user
Example Runs
Run
cooe Tex E copy to Drive
Run
Options: : Add Product
: Add Supplier : Search Product
: Display Products
: Update Stock
: Exit
Enter your choice :
Product Nate te
Brand: AA
Price:
psnaring
Conne
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