Question
Asked by:
cameltop
 

$5.00 Product 2 & 3 (Java Programming)

Q:
For Product 2:
Please see attached code. I'm having a problem trying to format the final output on the Price and Value. I would like these formatted $XX.XX and now they are coming out $XX.X or even $XX.XXXXXXXXXXX.

For the next step, Product 3:

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 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.

 
Attachments:
Product2.java (3K)


   
   
   
   
 
Available Tutorials to this Question
Posted by:
mareegirls
mareegirls
Rating (13): A-
Questions Asked: 23
Tutorials Posted: 10, earned $1,000.09
 

$10.00 Inventory Part3

  • This tutorial was purchased 3 times and rated A+ by students like you.
  • Posted on Jul 10, 2007 at 7:45:39PM
A:
Preview: ... save it as a .java file then compile it ...

The full tutorial is about 41 words long plus attachments.

Attachments:
Inventory3.txt (4K)
   
Join Now or Log In
Get Tutoring
Get Paid
Academic Honesty