/***********************************************
  MakingCircles exercises each of the Circle methods
  
  @author Nancy Harris
  @version V1 09/26/07
 ***********************************************/
 import java.util.Scanner;
 
 public class MakingCircles
 {
	/** main method - Drives the action
	 
	 	@param args command line arguments - unused
	*/ 
 	public static void main(String args[])
	{
		// declare variables
		Scanner kb;
		Circle spot;
		double radius;
		double outRadius;
		double area;
		double circum;		//circumference
		
		// instantiate and initialize where necessary
		kb = new Scanner(System.in);
		
		// prompt for and read in a radius
		System.out.print("Enter a radius value: ");
		radius = kb.nextDouble();
		System.out.print("\n");
		
		// instantiate a new Circle called spot
		spot = new Circle(radius);  // test the constructor
		
		// test Circle methods
		outRadius = spot.getRadius();
		System.out.printf("The radius of the circle is: %.4f.\n", outRadius);
		
		// test your other methods here
		
		// area
		area = spot.getArea();
		System.out.printf("The area of the circle is: %.4f.\n", area);
		
		// circumference
		System.out.printf("The circumference of the circle is: %.4f\n", 
			spot.getCircumference());
		
		// toString
		System.out.println(spot.toString());
		
	}
}
		
		  