Assignemnt #25
Code
///Colin Hinton
///5th period
///Dumb Calc
/// DumbCalc.java
/// 9/22/2015
import java.util.Scanner;
class DumbCalc
{
public static void main(String [] args)
{
Scanner keyboard = new Scanner(System.in);
double first, second, third, solution;
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();
solution = ((first + second + third) / 2);
System.out.println( "( " + first + " + " + second + " + " + third + " ) / 2 is..." + solution + ".");
}
}
Picture of the output