Assignemnt #25 and Dumb Calculator
Code
/// Name: Josh Pell
/// Period: 6
/// Program Name: Dumb Calculator
/// File Name: DumbCalculator.java
///Date Finished: 10/13/2015
import java.util.Scanner;
public class DumbCalculator
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
double one, two, three, answer;
System.out.print( "What is your first number? " );
one = keyboard.nextDouble();
System.out.print( "What is your second number?" );
two = keyboard.nextDouble();
System.out.print( "What Is your third number?" );
three = keyboard.nextDouble();
answer = (one+two+three)/2;
System.out.println( "( " + one + " + " + two + " + " + three + " ) / 2 is.... " + answer);
}
}
Picture of the output