@@ -0,0 +1,3304 @@
+//******************************************************************************%0A//  Title:  Prism.java       %0A//  Author: Miguel A Rodriguez%0A//  Date:   1/1/2015%0A//  Course: CSC 112-001%0A//******************************************************************************%0A//  Description:%0A//****************%0A//         Read the dimensions of a Prism from an input file.%0A//         Make appropiate calculations for the file using width, length and height to calculate area and Volume.%0A// %0A//******************************************************************************%0A   %0A   %0A//         UML Diagram for this helper class         %0A//          ***********************************************************************************     %0A//Class:      Prism%0A//          ***********************************************************************************%0A//Variables&Objects: %0A//            -width:     Double%0A//            -lenght:    Double%0A//            -height:    Double%0A//          ************************************************************************************%0A//Methods:%0A//            +Prism(double wid, double len, double hei):%0A//            +getheight():  double%0A//            +computeArea(): double%0A//            +computeVolume()%0A//            +toString(): String%0A//          ************************************************************************************* %0A%0Apublic class Prism extends Rectangle%0A%7B%0A   private double height;%0A%0A   //---------------------------------------------------------------------------%0A   //  Sets up the prism by entering its width, height and length.%0A   //---------------------------------------------------------------------------%0A   public Prism(double wid, double len, double hei)%0A   %7B%0A      super(wid, len);%0A      height = hei;%0A   %7D%0A%0A   //---------------------------------------------------------------------------%0A   //  Returns the double value of the length.%0A   //---------------------------------------------------------------------------%0A   public double getHeight() %0A   %7B%0A      return height;%0A   %7D%0A%0A   //---------------------------------------------------------------------------%0A   //  Returns the calculated value of the surface area.%0A   //---------------------------------------------------------------------------%0A   public double computeArea() %0A   %7B%0A      return 2 * super.computeArea() + 2 * width * height + 2 * length * height;%0A   %7D%0A%0A   //---------------------------------------------------------------------------%0A   //  Returns the calculated value of the volume.%0A   //---------------------------------------------------------------------------%0A   public double computeVolume() %0A   %7B%0A      return super.computeArea() * height;%0A   %7D%0A%0A   //---------------------------------------------------------------------------%0A   //  Returns pertinent information about the prism.%0A   //---------------------------------------------------------------------------%0A   public String toString() %0A   %7B%0A      return %22Prism: width is %22 + form.format(width) + %0A             %22, length is %22 + form.format(length) + %22, height is %22 + %0A             form.format(height) + %22%5Cnperimeter of base is %22 + %0A             form.format(computePerimeter()) + %22, area is %22 + %0A             form.format(computeArea()) +%0A             %22%5Cnvolume is %22 + form.format(computeVolume()) + %22%5Cn%22;%0A   %7D%0A%7D%0A

Create Prism.java