Assignemnt #25 and A Dumb Calculator
Code
///Name: Dakota Donahue
///Period: 5
///Project Name: A Dumb Calculator
///File Name: ADumbCalculator
///Date: 9/22/2015
import java.util.Scanner;
public class ADumbCalculator
{
public static void main( String[] args )
{
double a, b, c, d;
Scanner keyboard= new Scanner(System.in);
System.out.print("What is your first number? ");
a= keyboard.nextDouble();
System.out.print("What is your second number? ");
b= keyboard.nextDouble();
System.out.print("What is your third number? ");
c= keyboard.nextDouble();
d= (a+b+c)/2;
System.out.println("( " + a + " + " + b + " + " + c + " ) / 2 is... " + d + " ");
}
}
Picture of the output