Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Must be C++ and have notes so I can understand the code Write a program to keep track of a sports store inventory. The store
Must be C++ and have notes so I can understand the code
Write a 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, manufacturer's price for the item and the store's 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 manufPrice sellingPrice 10.00 5.00 ItemID itemName pOrdered plnstore Basketba 100 Frisbee 100 75 pSold 20 10 30.00 15.00 75 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.0065*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 (see sample menu on page 2), 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 pOrdered manuPrice sellngPrice 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 Write a 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, manufacturer's price for the item and the store's 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 manufPrice sellingPrice 10.00 5.00 ItemID itemName pOrdered plnstore Basketba 100 Frisbee 100 75 pSold 20 10 30.00 15.00 75 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.0065*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 (see sample menu on page 2), 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 pOrdered manuPrice sellngPrice 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 programStep 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