Answered step by step
Verified Expert Solution
Link Copied!

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 Serial-Number; Expired-Date; 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, Expire-Date, 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. tx" file
Terminate the program.
Select one of the following Operatians $1-6?
1- Add Product to the file
2- Delete product from the file
3- Search for specific item
q- Update the price for current praduct
5- Display Repert for Inventary
6-
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

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions