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 containing supplier details.
Inventory Functions: you must implement the following functions:
add_product(products, product_code, product_name, brand, category, price, stock)
add_supplier(suppliers, supplier_code, supplier_name, contact_details)
search_product(products, product_code)
display_products(products)
display_suppliers(suppliers)
update_stock(products, product_code, new_stock)
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:
1: Add Product
2: Add Supplier
3: Search Product
4: Display Products
5: Display Suppliers
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_2

Step: 3

blur-text-image_3

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

Building The Data Warehouse

Authors: W. H. Inmon

4th Edition

0764599445, 978-0764599446

More Books

Students also viewed these Databases questions

Question

Describe the current and evolving state of police technology

Answered: 1 week ago

Question

What is the business model and opportunity in virtual influencers?

Answered: 1 week ago

Question

Show the properties and structure of allotropes of carbon.

Answered: 1 week ago