Question: C++ program, using class. The output shout look like this. Create a program to maintain inventory information. The should be able to store and keep
Create a program to maintain inventory information. The should be able to store and keep track of information for many items. Each item contains information about Item ID Item Name, Number of Items, Buying Prince, Selling Price, and Storage Fees The program should start by asking user if they want to enter the data or read it from a file ("Would you like to enter data by hand (H) or read it from a file (F):"). If the users chooses to enter the data they should be asked the number of items they want to store ("Please enter the number of items you would like to store:") and asked to enter each item's information. On the other hands, if the users chooses to use a file they should enter the location of the file ("Please enter the file location:"). Afterwards, the user is shown a menu and asked to choose between the following options: Option a (Same as Project 1): Print stock information. This option shows the stock information for all of the items. The option should alert the users about items that are have an inventory of less than 25. It also should print the profit for each item using the following formula: Profit: Number of Items*(Selling Price - (Buying Price + Storage Fees) Option b (Same as Project 1): Print general information: This option should show the total number of items, total profit, average profit and average buying and selling price. Option c: Data Table: Print all the items in a table Option d: Edit an Item: Edit an item's information. The program will ask the item ID of an item and reads data from the user Option e: Store in a file: Store the entered/updated items in a file Option f (Same as Project 1): Exit: This program should close the program and exit. The program should go to the menu every time after executing an option. Notes: Please format your output accordingly. For example, the dollar values should be printed with 2 decimal places. Please submit a copy of the source code as well as the output of the programs You should use arrays to keep track of items
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
