Prog25: A Dumb Calculator
///Name: Ilana Levy
///Period: 5
///Program Name: A Dumb Calculator
///File Name: dumbCalc.java
///Date finished: 9/8/2015
import java.util.Scanner;
public class dumbCalc
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner( System.in);
Double firstNumber, secondNumber, thirdNumber;
System.out.print( "What is your first number? " );
firstNumber = keyboard.nextDouble();
System.out.print( "What is your second number? " );
secondNumber = keyboard.nextDouble();
System.out.print( "What is your third number? " );
thirdNumber = keyboard.nextDouble();
System.out.println();
System.out.println( "( " + firstNumber + " + " + secondNumber + " + " + thirdNumber + " ) / 2 is . . . " + (( firstNumber + secondNumber + thirdNumber)/ 2 ) ) ;
}
}