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