Write a program to keep track of a hardware stores


Question: Write a program to keep track of a hardware store's inventory. The store sells various items. For each item in the store, the following information is kept: item ID, item name, number of pieces in stock, manufacturer's price of the item, and the store's selling price.

Your program should include the subsequent:

(Inventory.java) Write the definition of the class Inventory such that an object of this class can store an item's id, name, number of pieces in stock, manufacturer's price, and selling price. The class should include constructors, setters, getters, and toString method.

(HardwareStore.java) Write a client program (must be menu-driven) that can help store employees to keep track of the inventory.

Use an array of objects of the class Inventory to store each item's data.

Read the data file "hardware.txt" to populate the array of objects (the data file is on D2L).

Use a menu to do the following.

A: Display a report that shows the store inventory (id, name, number of pieces in stock, manufacturer's price, and selling price of all the items).

B: Display the total inventory (the total selling value of all the items).

C: Find the item with the highest in stock value and display its information.

D: Find the items that have less than 10 pieces in stock and display these items information.

0: To end the program.

You have to satisfy the requirements specified in the instruction.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write a program to keep track of a hardware stores
Reference No:- TGS0944359

Expected delivery within 24 Hours