Write the definition of the class inventory

Assignment Help JAVA Programming
Reference no: EM13690954

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 following:                

Question 1:  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 method.                

Question 2: Write a client program (must be menu-driven) that can help store 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.                

Part 1: 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).

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

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

Part 4: Find the items that have less than 10 pieces in stock and display these items           

Please keep it short and simple and no copy and paste or at least help me get started.

Reference no: EM13690954

Questions Cloud

Expected economic profit problem : Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4 ..
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.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a complete program which computes the sum

Write a complete program (actually complete the one on the exam) which computes the following sum: ( 100 / 1 ) + ( 99 / 2 ) + ( 98 / 3 ) + ( 97 / 4 ) + ... + ( 3 / 98 ) + ( 2 / 99 ) + ( 1 / 100 ) Use a FOR loop in your program (where indicated) to..

  Write down a java program which prints out division by zero

write a java program that prints out division by zero and array out of bounds exceptions when a user attempts to find

  Write a blog article for a codingtechnical community

write a blog article for a codingtechnical community blog.the theme is general c or java. choose any subject under this

  Powerful pain reliever are consumers with headaches

Your target market for the most powerful pain reliever are consumers with HEADACHES. Start with goals and objectives. Do a SWOT. What information is most important for your market? Do some market research.

  Create a class named blooddata

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor

  Write a graphical user interface class

Write a graphical user interface class called SentenceCounterGUI. It should be able to manipulate the sentence of words and have the behaviour label.

  Write jvm program which accepts rpn expression

Write down the IJVM program which accepts RPN expression, with each operand and operator entered line by line. As each number (operand) is entered, push it on stack.

  Write a program in java that simulates a simple line editor

Write a program in Java that simulates a simple line editor which supports the following operations

  Java program to store temperatures in two-dimensional array

Write the Java program which uses two-dimensional array to store highest and lowest temperatures for each month of the year. Program must output average high,average low,

  Build a thread system

Identify all Nachos classes that you will modify and where you plan to do you modifications - Identify all classes that you plan to implement and give the API for each class,

  Create a class that implements movieloader

Fill in the empty Frame class that has been provided. Each object of this type will store data consisting of a single frame from an input le.

  Determine the purpose of using javascriptr on a website

write a 200- to 300-word short-answer response to the followingwhat is the purpose of using javascriptr on a website?

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