/*******************************************************************
 * Name:  	Nancy Harris
 * Course:	CS 139, section all
 * Date:	02/05/02
 * Assignment:	Program to compute the area of a rectangle
 ******************************************************************/


/******************************************************************
 * Area is a program that will prompt the user for the length and 
 * width dimensions of a rectangle and will calculate the area.
 *****************************************************************/
public class Area
{	
	public static void main(String argv[])
	{  
	   // First, declare all variables needed grouped by type
	   int length, width area;
	   String units;
	   
	   // Prompt the user for the units, then read in their response
	   System.out.print("\n/nWhat units are your measurements in? ");
	   units = Keyboard.readString(); // assigns the result of the read to units
	   
	   // Prompt the user for the length, width
	   System.out.println("\nEnter the length as a whole number: ");
	   length = Keyboard.readInt();
	   System.out.println("\nEnter the width as a whole number: ");
	   width = Keyboard.readInt();
	   
	   // Calculate the area and display
	   length * 2 = area;
	   System.out.println("The area is:  + area + " " + units);  
	   
	}   // end main
}	// end Area
