Assignment #25 and A Dumb Calculator
Code
/// Name: Ali Kurland
/// Period: 6
/// Program Name: A Dumb Calculator
/// File Name: DumbCalculator.java
/// Date Finished: 9/21/2015
import java.util.Scanner;
public class DumbCalculator
{
public static void main( String[] args )
{
Double first, second, third;
Scanner keyboard = new Scanner(System.in);
System.out.print( "What is your first number? " );
first = keyboard.nextDouble();
System.out.print( "What is your second number? " );
second = keyboard.nextDouble();
System.out.print( "What is your third number? " );
third = keyboard.nextDouble();
System.out.println ( " " );
System.out.print( "( " + first + " + " + second + " + " + third + " ) / 2 is... " );
System.out.println( (first + second + third) / 2 );
}
}
Picture of the output