Product and Inventory and Java Application

Java Application – Product and Inventory


Don't use plagiarized sources. Get Your Custom Essay on
Product and Inventory and Java Application
Just from $9/Page
Order Essay


Create a class to encapsulate the data and behavior of a product in a store’s inventory.  The class should have the following data for an inventory item:


Product Number – String

Description – String

Quantity on hand – int

Product Price – double


Use appropriate access modifiers when defining the data


Code accessor and mutator (get and set) methods for all class instance variables. Be sure to follow the class style and use _<classInstanceVariable> as the name for the parameter corresponding to the class instance variable. (Note the “_” starting the parameter name.)


If the product number or description is blank, or the values passed for the quantity or price are not valid, leave the associated instance variable unchanged.


Create a class method to calculate and return the total amount for the product based on the quantity on hand and the product price.


Use appropriate modifiers when creating the methods


The main method in this class should create an instance of Product.  It should then read inventory information from a text file named Inventory.txt and use the class mutators to put the information into the Product object.  The Product object should then be passed to a method to display product information using the class accessors and member method.


The Inventory.txt file contains colon delimited fields for the product number, description, quantity on hand, and the product price for each inventory item.  Upload this file from Moodle and use it in your application.



The program output should appear as shown here



                       Inventory Report


Number Description       On Hand  Unit Price  Inventory Value

AXB10  Lawn Mower            5      195.79        978.95

AXB15  Wheelbarrow          12       35.99        431.88

BYT70  Leaf Blower           4       87.49        349.96

BYT75  Rake                 20       22.99        459.80

CMU12  Bicycle               3      118.49        355.47

CMU29  Skooter               6       57.99        347.94












·        Correct File Name ( – case sensitive

·        Correct Class Name (Product) – case sensitive

·        Correct Style – comments

·        Correct Style – indentation

·        Correct Style – White Space

·        Correct Style – Mutator parameters

·        Free of syntax errors

·        Private data for product number, description, quantity and price

·        Public accessors for product number, description, quantity and price

·        public mutators for product number, description, quantity and price

·        Validate input in mutators

·        public member method to return product inventory value

·        Descriptive comments through the application


·        Correct File Name ( – case sensitive

·        Correct Class Name (Product) – case sensitive

·        Correct Style – comments

·        Correct Style – indentation

·        Correct Style – White Space

·        Free of syntax errors

·        Creating Product object

·        Reading product information from Inventory.txt file and using mutators to set product data into object

·        Validate if .txt file is not found

·        Pass product object to method to display report

·        Use Accessor methods in your method to display product information

·        Descriptive comments through the application


Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

We value our customers and so we ensure that what we do is 100% original..
With us you are guaranteed of quality work done by our qualified experts.Your information and everything that you do with us is kept completely confidential.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

The Product ordered is guaranteed to be original. Orders are checked by the most advanced anti-plagiarism software in the market to assure that the Product is 100% original. The Company has a zero tolerance policy for plagiarism.

Read more

Free-revision policy

The Free Revision policy is a courtesy service that the Company provides to help ensure Customer’s total satisfaction with the completed Order. To receive free revision the Company requires that the Customer provide the request within fourteen (14) days from the first completion date and within a period of thirty (30) days for dissertations.

Read more

Privacy policy

The Company is committed to protect the privacy of the Customer and it will never resell or share any of Customer’s personal information, including credit card data, with any third party. All the online transactions are processed through the secure and reliable online payment systems.

Read more

Fair-cooperation guarantee

By placing an order with us, you agree to the service we provide. We will endear to do all that it takes to deliver a comprehensive paper as per your requirements. We also count on your cooperation to ensure that we deliver on this mandate.

Read more

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
The price is based on these factors:
Academic level
Number of pages
Open chat
You can contact our live agent via WhatsApp! Via +1 817 953 0426

Feel free to ask questions, clarifications, or discounts available when placing an order.

Order your essay today and save 30% with the discount code STARS