/* AreaCalculator.java CIS 111 10/29/2007 David G. Klick Calculates area given length and width. */ public class AreaCalculator extends CIS111App { public static void main(String[] args) { double length = getDouble("Enter length: "); double width = getDouble("Enter width: "); double area = calcArea(length, width); printf("The area is %.2f\n", area); } private static double calcArea(double len, double wid) { double a = len * wid; return a; } }