Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Notice: don't use any structures Or prinary Supermarket Inventory Management System Each student required to build a comprehensive C program using parallel array only that
Notice: don't use any structures Or prinary Supermarket Inventory Management System
Each student required to build a comprehensive C program using parallel array only that specified for Supermarket Inventory System
The user required to read from file at the beginning of the process, and do different operations on the system.
Read Initial Data: Load data from the "stores. bt file at the beginning of the program.
The File Content as follows
Product Name; Product SerialNumber; ExpiredDate; Product Purchasing Price; Product Selling Price, Number of wits in the store.
Parallel Arrays: Use parallel arrays to store different atributes of each product. For example:
productName; Array to store product names.
serialNumber: Array to store product serial numbers.
expiredDate. Array to store expiration dates.
purchasePrice: Array lo store product purchasing prices.
sellingPrice: Array to store product selling prices.
unitsInStore: Array to store the number of units in the store.
Menu:
Add Product:
Prompt the user to input details for a new product Product Name, serial number, ExpireDate, purchasing price, selling price, number of units
Add the new product to the inventory.
Delete Product:
Prompt the user to input the seriat number of the product to be deleted.
Remove the product from the inventory.
Search for Product:
Prompt the user to input the serial number or name of the product.
Display the details of the product iffound.
Update Price:
Prompt the user to input the serial number of the product.
Allow the user to update the purchase price, purchasing price, or selling price.
Display Inventory:
Display the detalls of all products in the inventory.
Exit:
Save the updated inventory data to the "stores. file
Terminate the program.
Select one of the following Operatians $
Add Product to the file
Delete product from the file
Search for specific item
q Update the price for current praduct
Display Repert for Inventary
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