Write program to keep track of a hardware stores inventory

Assignment Help JAVA Programming
Reference no: EM13690953

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.

Reference no: EM13690953

Questions Cloud

Price elasticity of demand for this curve at any arbitrary : Price elasticity of demand for this curve at any arbitrary point (say point E). To do so, first write the algebraic form of this Use your results from part a together with the fact that distance X in the figure is given by the current price, P*, to s..
Labor hoarding-an increase in output may signal : Can anyone choose and explain that because of labor hoarding, an increase in output may signal:
Write the definition of the class inventory : Write the definition of the class Inventory such that 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 meth..
Write program to keep track of a hardware stores inventory : 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 s..
Draw flowchart and execute the algorithm : Execute the algorithm below using 6 for "number" and Execute the algorithm below using 25 for "number" and draw a flowchart for the algorithm below and have it checked by the TA.
Draw a flowchart for the algorithm : Compute the final answer by rounding the last value to 4 decimal places type the computed value at the bottom of the list and Draw a flowchart for the algorithm below and have it checked by the TA
The function should compute and return : Define a function that takes as input parameters a function handle f, start and end values a and b, and a number of steps n. The function should compute and return the x and y values of the maximum of the function over the range a to b.
Greatest challenge for system forensics investigators : Describe what you perceive to be the greatest challenge for system forensics investigators. Provide specific details of this challenge and whether or not the challenge differs from a private company investigation compared to a law enforcement inve..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Programming exercises

Programming Exercises 1. Write an application named BadSubscriptCaught in which you declare an array of 10 first names. Write a try block in which you prompt the user for an integer and display the name in the requested position.

  Socket programming modify the translate program and

socket programming modify the translate program and dictionary program. modify the programs to handle multiple user

  Program that computes and prints the value of 6!/5! using

Write a Java program that computes and prints the  value of 6!/5! using Scanner.

  Write a program to simulate the behavior of the philosophers

Write a program to simulate the behavior of the philosophers, where each philosopher is a thread and the chopsticks are shared objects.

  Compare swing java gui components to awt components

Compare Swing Java GUI components to AWT components. Explain at least one way the components are similar and at least one way they are different.

  Inheritancedemo

Create a New Project named InheritanceDemo . 2. Create a new class called Person and cut and paste the Person.java file from Blackboard into the class. Create a new class called Student and cut and paste the Student.java file from Blackboard into the..

  Given a hash function hkey prepare a java simulation

given a hash function hkey prepare a java simulation program to determine each of the subsequent quantities after

  Drags html list items to and from a javascript array

1.Write a program which drags html list items to and from a javascript array.2. if an identical list item is already in the array, prevent the list item from dropping in the array. Give an error saying that the list item already exists in the array

  Create an application for an animal-fur trimming service

create an application for an animal-fur trimming service. the business is open 15 weeks of the year from april through

  This project is for designing and developing a college

this project is for designing and developing a college registration program. prepare a java program to register

  Shooting star

Initial project folder you will see the beginnings of a Driver - You need to implement that DoubleListOfBlock methods so they perform

  Write a java loop

write a java loop ( of your choice ) that produces exactly the following output to the screen: 2-4-6-8-

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd