/****************************************************************** * PieSliceArea.java provides a 'laboratory' for exploring basic GUIs. * * Written by: Charles Hoot, June 2000. * Written for: GUI Interlude 1 in "Hands On Java". * * Compute the area of a slice of pie given the pies radius * in inches and the angle of the pie slice in degrees ******************************************************************/import ann.easyio.*;public class PieSliceArea extends Object {  static Screen theScreen = new Screen();  static Keyboard theKeyboard = new Keyboard();  public static void main(String args[]){  	double pieArea, sliceArea, slice, radius;  	theScreen.print("What is the radius of the pie (inches): ");  	radius = theKeyboard.readDouble();  	theScreen.print("What is the angle of the pie slice (degrees): ");  	slice = theKeyboard.readDouble();  	pieArea = Math.PI * radius * radius;  	// total area of the pie  	sliceArea = pieArea * slice / 360;		// fractional area of the slice  	theScreen.println("\n\nThe area of the slice in square inches is "  		+ sliceArea);  }}