/* SimpleMath.java David G. Klick August 29, 2007 CIS 111 Demonstrates simple calculations using CIS111App class */ public class SimpleMath extends CIS111App { public static void main(String[] args) { // declare and initialize variable float num = 0; float biggerNum = 0; // ask user for a number print("Enter a number to be doubled: "); num = getFloat(); // display number multiplied by two biggerNum = num * 2; println("Twice " + num + " is " + biggerNum); } }