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