Assignemnt #25 A Dumb Calculator
Code
/// Name: Jake Johnson
/// Period: 7
/// Program Name: ADumbCalculator
/// File Name: ADumbCalculator.java.java
/// Date Finished: 9/21/2015
import java.util.Scanner;
public class ADumbCalculator
{
public static void main (String [] args)
{
double numOne, numTwo, numThree, numFinal;
Scanner keyboard = new Scanner(System.in);
System.out.print("What is your first number? ");
numOne = keyboard.nextDouble();
System.out.print("What is your second number? ");
numTwo = keyboard.nextDouble();
System.out.print("What is your third number? ");
numThree = keyboard.nextDouble();
numFinal = (numOne + numTwo + numThree) / 2;
System.out.println(numOne + " + " + numTwo + " + " + numThree + " / 2 is... " + numFinal );
}
}
Picture of the output