Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I'm really having trouble so can I get help to write a C++ program to keep track of a sports store inventory. The store sells

I'm really having trouble so 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 manager 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:

Welcome to the Dakine Sports Store!

Choose from the following options.

1: To see if an item is in the store (search by name of the item entered).

2: To buy an item (ask for the name of the 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 the name of the item).

4: To print the inventory (print the inventory report.

9: To end the program.

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:

1111 Basketball 100 100 20 10.00 30.00

2222 Frisbee 75 75 10 5.00 15.00

3333 Baseball 100 100 40 7.00 21.00

4444 Baseball bat 150 150 100 12.00 36.00

After inputting the data, sort it according to the items names. Also after an item is sold, update the appropriate counts.

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

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_2

Step: 3

blur-text-image_3

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

Database Development For Dummies

Authors: Allen G. Taylor

1st Edition

978-0764507526

More Books

Students also viewed these Databases questions

Question

How do religious subcultures affect consumption decisions?

Answered: 1 week ago

Question

What were the issues and solutions proposed by each team?

Answered: 1 week ago