Question: Basic Inventory Management System Overview: You are required to develop a console - based Inventory Management System for a small retail store. This system will

Basic Inventory Management System
Overview:
You are required to develop a console-based Inventory Management System for a small retail store. This system will manage a list of products, process sales, and display reports for the store owner. The system should handle multiple products, update stock levels after sales, and notify the user of errors such as invalid input or insufficient stock.
Requirements:
Product Management:
The system should store product information in parallel arrays. Each product should have an ID (integer), a name (string), a price (decimal), and a quantity in stock (integer).
Allow the store owner to add a new product to the inventory.
Sales Processing:
Implement a sales feature where the user can enter the product ID and quantity to sell.
Ensure the system checks if the product is in stock and updates the quantity after a sale.
If the product is out of stock or the requested quantity exceeds available stock, notify the user and prevent the sale.
Reporting:
Display all products in the inventory along with their current stock levels.
Implement a low stock alert that identifies products with quantities below a certain threshold (e.g.,5 units) and lists them for restocking.
Error Handling:
Handle errors such as invalid product IDs, insufficient stock, and invalid inputs (e.g., non-numeric input for quantity).
Ensure robust input validation and provide clear error messages.
Exit the Program:
Allow users to exit the program when they are finished.
Key Features:
Adding a Product:
The user should enter a product ID, name, price, and quantity.
Store this information in the corresponding arrays.
Processing a Sale:
Prompt the user for the product ID and quantity.
Check if the ID exists and if there is enough stock.
If valid, reduce the quantity in stock; otherwise, show an error message.
Displaying Reports:
Print out the list of all products, including their ID, name, price, and quantity.
Identify products with low stock and notify the user.
Dont use array or list , i want the selution using Tuples plz in c#, i need selution step by step as astiudent with comment , no use for chatgtp and others plz , give code to run it in vs app pleas i neeed selution using Tuples in c#
Basic Inventory Management System Overview: You

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!