/**
*  Test driver created by Adams to grade Lab 14
*
*/
public class TestDriver
{

   public static void main (String args [])
	{
       Sphere mySphere;
		 Circle myCircle;
       Pyramid myPyramid;
		 
		 double aRadius;
		 double surfaceArea;
		 double sphereVolume;
		 double pyramidSurfaceArea;
		 double pyramidVolume;
		 
		 aRadius = 5.0;
		 
		 // instantiating a new Sphere
		 mySphere = new Sphere (aRadius );
		 
		 // instantiating a new Circle
		 myCircle = new Circle (aRadius);
		 
		 // instantiating a new Pyramid
		 myPyramid = new Pyramid (8,3);
		 		 
		  // computing and printing surface area
		 surfaceArea = myCircle.getArea();
		 System.out.println 
		   (" When radius of circle is " + aRadius + 
			 " the surface area is " + surfaceArea);
		 
		  // computing and printing surface area
		 surfaceArea = mySphere.getArea();
		 System.out.println 
		   (" When radius of sphere is " + aRadius + 
			 " the surface area is " + surfaceArea);
		
			 
		 sphereVolume = mySphere.getVolume();
		 System.out.println	 
		 	(" When radius of sphere is " + aRadius + 
			 " the volume is " + sphereVolume);

       pyramidSurfaceArea = myPyramid.getSurfaceArea();
		 System.out.println 
		   (" Surface area of pyramid with side of base 8 " +
			 " and height 3 is " + pyramidSurfaceArea);
			 
		 pyramidVolume = myPyramid.getVolume();
		 System.out.println
		   (" Volume of a pyramid with side of base = 8 " + 
			 " and height 3 is " + pyramidVolume);
	 } // end main
} // end TestDriver
		 

