Share
Explore BrainMass

Creating a Java Inventory Program

I have been collecting golf balls from different courses over the years now. Of right now I have an inventory of over 200 golf balls from different courses. Each golf ball has its own logo (golf course name)
My project is to create an inventory of my golf balls; can some one help me with this project?

The product is golf balls and the price for each ball is $2

? Create a product class that holds the item number, the name of the product, the number of units in stock, and the price of each unit.

? Create a Java application that displays the product number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory (the number of units in stock multiplied by the price of each unit).....etc.

Modify the Inventory Program so the application can handle multiple items. Use an array to store the items. The output should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price of each unit, and the value of the inventory of that product. In addition, the output should display the value of the entire inventory.

? Create a method to calculate the value of the entire inventory.

? Create another method to sort the array items by the name of the product.

You may use the golf ball as the project or pick something that is easier for you.

Solution Summary

A Java Inventory Program is shown.

$2.19