/***************************************
 * Program for Calculating the Area of Circles
 *   by Dave Olson, Kate Katzban-Beren, Tanner Dabel,
 *   Evan Odim, and Nisha Mangar
 * 2/8/2001
 ****************************************/
import javabook2.*;

class AreaOfCircle{

    public static void main(String[] args) {
	// create javabook objects
	final double K = 6.67E-8;
	MainWindow mw = new MainWindow();
	InputBox in = new InputBox(mw);
	OutputBox out = new OutputBox(mw);
	mw.show();
	out.show();
	
	// get radius of circle
	double radius = in.getDouble("What is the " +
				     "radius of your circle");

	// calculations
	double area = Math.PI * (Math.pow( radius, 2));

	// output
	out.print("The area of the circle is ");
	out.printLine(area);
    }
}
