Code
/// Name: Afaf Nabeeha
/// Period: 7
/// Program Name: A Dumb Calculator
/// File Name: Dumb.java
/// Date Finished: 10/2/2015 public class Dumb
import java.util.Scanner;
public class Dumb
{
public static void main( String[] args )
{
double n1, n2, n3;
Scanner keyboard = new Scanner(System.in);
System.out.print( "What is your first number? ");
n1 = keyboard.nextDouble();
System.out.print( "What is your second number? ");
n2 = keyboard.nextDouble();
System.out.print( "What is your third number? ");
n3 = keyboard.nextDouble();
System.out.println( " " );
System.out.print( "( " + n1 + " + " + n2 + " + " + n3 + " ) / 2 is..." );
System.out.println( (n1 + n2 + n3 ) );
}
}
Picture of the output