Computer Science Homework Solutions
Problem
#174674

Java: How to Program

Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose (for the DVDs subclass, you could use movie title, for example). In the subclass, create a method to calculate the value of the inventory of a product with the same name as the method previously created for the product class. The subclass method should also add a 5% restocking fee to the value of the inventory of that product.

Modify the output to display this additional feature you have chosen and the restocking fee.

You did an excellent job on part II, thank you.

I have attached some instructions, again the product class does not need to be modified.

Attached file(s):
Attachments
Here is an example of how to create a subclass.doc  View File
Instructions for part three.doc  View File
InventoryPart2.java  View File
Product.java  View File
InventoryPart1.java  View File
Solution
What is this?
By OTA - Overall OTA Rating
Yupei Xiong, PhD - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$19.95)
Included in Download
  • Plain text response
  • Attached file(s):
    • AddItemID.java
    • InventoryPart3.java
    • Product.java
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
  • Inventory Output - I cannot get it to display the restocking fee or even know how to type the code for it. I am lost. • Modify the Inventory Program by creating a subclass of the product class that uses one additional ...
  • Inventory part three - Modify the Inventory Program by creating a subclass (12 oz bottle or 12 oz can) of the product class that uses one additional unique feature of the product you chose. In the subclass, create a met ...
  • Java Program - need to create GUI in three different steps - I have posted my JAVA inventory program so far. I need to do 3 more versions of this. I have been using JDK 1.5 to create my programs and will need help with the following versions using this same ver ...
  • Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose. - Modify the Inventory Program by creating a subclass of the product class that uses one additional unique feature of the product you chose. In the subclass, create a method to calculate the value of ...
  • Inventory - GUI - I need help getting this program I have now to use a GUI. Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the na ...
Browse