/* ModTest1.java David G. Klick September 10, 2007 CIS 111 Demonstration of modules (methods). The use of class variables like this is dicouraged, but helps illustrate some points we will discuss in class. */ public class ModTest1 extends CIS111App { private static double height; private static double width; private static double area; private static double perimeter; public static void main(String[] args) { clearConsole(); getInput(); doCalcs(); displayOutput(); } private static void getInput() { height = getDouble("Enter height: "); width = getDouble("Enter width: "); } private static void doCalcs() { area = height * width; perimeter = 2 * (height + width); } private static void displayOutput() { println("The perimeter is " + perimeter); println("The area is " + area); } }