Write a program in Java to keep track of a hardware store\'s inventory. The stor
ID: 3627186 • Letter: W
Question
Write a program in Java to keep track of a hardware store's inventory. The store sales various items. For each item in the store, the following information is kept: item ID, item name, number of pieces sold, manufacturer's price of the item, and the store's selling price. At the end of each week, the store manager would like to see a report in the following form:
----------------------Friendly Hardware Store-------------------
itemID itemName pOrdered pInStore pSold manufPrice sellingPrice
1111 Circular Saw 150 110 40 45.00 125.00
2222 Cooking Range 50 30 20 450.00 850.00
Total Inventory: $#########.##
Total number of items in the store:___________________
The total inventory is the total selling value of all the items currently in the store. The total number of items in the sum of the number of pieces of all the items in the store. The total number of items is the sum of the number of pieces of all items in the store.
Your program must be menu driven, giving the user various choices, such as: check whether an item is in the store, sell an item, and print 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:
itemID
itemName
pOrdered manufPrice sellingPrice
Use seven parallel vectors to store the information. The program must contain at least the following methods--a method to input data into the vectors, a method to display the menu, a method to sell an item, and a method to print the report for the manager. After inputting the data, sort it according to the items' names.