(Solved) : Get Help Write C Program Keep Track Sports Store Inventory Store Sells Various Items Item Q28960135 . . .
Can I get help to write a C++ program to keep track of a sportsstore inventory. The store sells various items. For each item inthe store, the following information is kept, item ID, item name,number of pieces ordered, number of pieces currently in the store,number of pieces sold, manufacturer’s price for the item and thestore’s selling price. At the end of each week, the store managewould like to see a report in the following format:
Dakine Sports Store Report
ItemID itemName pOrdered pInstore pSold manufPricesellingPrice
1111 Basketball 100 100 20 10.00 30.00
2222 Frisbee 75 75 10 5.00 15.00
Total Inventory: $######.##
Total number of items in the Store: ————————
The total inventory is the total selling value of all of theitems currently in the store. (for what is listed in the reportabove the value would be 3375.00(80 *30.00 + 65*15.00)
The total number of items is the sum of the number of pieces ofall of the items in the store. for what is listed in the reportabove the value would be 145(80+65)
Your program must be menu driven, giving the user variouschoices such as,
Checking whether an item is in the store,
Selling an item in the store,
Printing the report.
After inputting the data, sort it according to the items’ names.Also after an item is sold, update the appropriate counts.
Initially, the number of pieces (of an item) in the store is thesame as the number of pieces ordered, and the number of pieces ofan item sold is zero. Input to the program is a file consisting ofdata in the following form (see example of text file on page3):
itemID
itemName
pOrdered manuPrice sellingPrice
Use seven parallel vectors to store the information. The programmust contain at least the following functions: one to input thedata into the vectors, one to display the menu, one to sell anitem, and one to print the report for the manager
Example of a sample menu (your menu needs tohave the following items (you may choose to include more)
Welcome to the Dakine Sport Store!
Choose among the following options.
1: To see if an item is in the store (search by name of itementered).
2: To buy an item (ask for name of item and then how many thebuyer wants to purchase, output how much the buyer owes).
3. To check the price of an item (ask for name of item).
4: To print the inventory (print the inventory report.
9: To end the program.
Example of text file used for input
1111 Basketball 100 10.00 30.00 2222
Frisbee 75 5.00 15.00 3333
Baseball 100 7.00 21.00 4444
Baseball bat 150 12.00 36.00
add more products …..
Expert Answer
Answer to Get Help Write C Program Keep Track Sports Store Inventory Store Sells Various Items Item Q28960135 . . .
OR