@@ -0,0 +1,3518 @@
+//*********************************************************************************************%0A//  Title:  Circle.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 Circle from an input file.%0A//         Make appropiate calculations for the file using radius to calculate area and perimeter.%0A// %0A//*********************************************************************************************%0A   %0A   %0A//         UML Diagram for this helper class         %0A//          ***********************************************************************************     %0A//Class:     Circle%0A//          ***********************************************************************************%0A//Variables&Objects: %0A//            -radius:     Double%0A//            -form:      DecimalFormat%0A//          ************************************************************************************%0A//Methods:%0A//            +Circle( double rad) %0A//            +getradius(): double%0A//            +computeDiameter(): double%0A//            +toString(): String%0A//            +computeArea(): double%0A//          *************************************************************************************   %0Aimport java.text.*;%0A%0Apublic class Circle extends Shape%0A%7B%0A  protected DecimalFormat format = new DecimalFormat(%220.##%22);%0A  %0A  public double radius;%0A   %0A  %0A  //---------------------------------------------------------------------------%0A   //  Sets up the circle by entering its radius%0A   //---------------------------------------------------------------------------%0A   public Circle( double rad ) %0A   %7B%0A      radius = rad;%0A      %0A      %0A   %7D%0A%0A   //---------------------------------------------------------------------------%0A   //  Returns the double value of the radius%0A   //---------------------------------------------------------------------------%0A   public double getradius() %0A   %7B%0A      return radius;%0A   %7D%0A   %0A  //****************************************************************************%0A  //   Returns the calculated value of the diameter%0A  //****************************************************************************%0A   public double computeDiameter() %0A   %7B%0A      return  2 * radius;%0A   %7D%0A%0A     %0A   //---------------------------------------------------------------------------%0A   //  Returns the calculated value of the area.%0A   //---------------------------------------------------------------------------%0A   public double computeArea() %0A   %7B%0A      return  Math.PI * Math.pow(radius, 2);%0A   %7D%0A   //---------------------------------------------------------------------------%0A   //  Returns the calculated value of the perimeter.%0A   //---------------------------------------------------------------------------%0A   public double computePerimeter() %0A   %7B%0A      return  2 * Math.PI * radius;%0A   %7D%0A   %0A   //---------------------------------------------------------------------------%0A   //  Returns pertinent information about the circle%0A   //---------------------------------------------------------------------------%0A   public String toString() %0A   %7B%0A      return %22Circle: diameter is %22 + format.format(computeDiameter()) + %0A             %22, circumference is %22 + format.format(computePerimeter()) +%0A             %22 and area is %22 + format.format(computeArea());%0A   %7D%0A%7D%0A  %0A %0A

Create Circle.java