Question: Can I get help to write a C++ program to keep track of a sports store inventory. The store sells various items. For each item

Can I get help to write a C++ program to keep track of a sports store inventory. The store sells various items. For each item in the 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, manufacturers price for the item and the stores selling price. At the end of each week, the store manage would like to see a report in the following format:

Dakine Sports Store Report

ItemID itemName pOrdered pInstore pSold manufPrice sellingPrice

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 the items currently in the store. (for what is listed in the report above 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 of all of the items in the store. for what is listed in the report above the value would be 145(80+65)

Your program must be menu driven, giving the user various choices 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 the same as the number of pieces ordered, and the number of pieces of an item sold is zero. Input to the program is a file consisting of data in the following form (see example of text file on page 3):

itemID

itemName

pOrdered manuPrice sellingPrice

Use seven parallel vectors to store the information. The program must contain at least the following functions: one to input the data into the vectors, one to display the menu, one to sell an item, and one to print the report for the manager

Example of a sample menu (your menu needs to have 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 item entered).

2: To buy an item (ask for name of item and then how many the buyer 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 ..

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 Databases Questions!