Assignemnt #25 and DumbCalculator
Code
///Name: Joshua Bautista
///Period: 6
///Project Name: DumbCalculator
///File Name: DumbCalculator.java
///Date: 8/18/2015
import java.util.Scanner;
public class DumbCalculator
{
public static void main( String [] args )
{
double firNumber, secNumber, thiNumber;
Scanner keyboard = new Scanner(System.in);
System.out.print( "What is your first number?" );
firNumber = keyboard.nextDouble();
System.out.print( "What is your second number?");
secNumber = keyboard.nextDouble();
System.out.print( "What is your third number?");
thiNumber = keyboard.nextDouble();
System.out.println( "(" + firNumber +"+"+ secNumber + "+"+ thiNumber +") / 2 is... "+ (firNumber+secNumber+thiNumber/2) );
}
}
Picture of the output