Answered step by step
Verified Expert Solution
Link Copied!

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 4(55 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:
add_product(products, product_code, product_name, brand, category, price, stock)
search_product(products, product_code)
display_products(products)
display_suppliers(suppliers)
update_stock(products, product_code, new_stock)
Menu (Options): Implement a menuct and supplier information using appropriate data structures.
1: Add Product
2: Add Supplie
3: Search Product
5: Display Suppliers
E4IP_2_Sum_2023.ipynb is
Help Changes will not be saved
Code + Text a copy to Drive
2: Add Supplier
3: Search Product
5: Display Suppliers
6: Update Stock
7: 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 non-existent product or updating the stock of a non-existent 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 1
cooe + Tex E copy to Drive
Run 1
Options: 1: Add Product
2: Add Supplier 3: Search Product
4: Display Products
6: Update Stock
7: Exit
Enter your choice (1-7):1
Product Nate te
Brand: AA
Price: 12
p=snaring
Conne
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

Students also viewed these Databases questions

Question

What are the salient product features of CFD?

Answered: 1 week ago