Assignment #25

Code

        ///Name: Jack Newsom
        ///Period: 5
        ///Program Name: DumbCalc
        ///Filename: DumbCalc.java
        ///Date Finished: 9/17/15
        
        import java.util.Scanner;
        
        public class DumbCalc
        {
            public static void main( String[] args )
            {
                Scanner calcbot = new Scanner(System.in);
                double one, two, three, sum; 
                
                System.out.println("This is a simple calculator. Please enter your first number.");
                one = calcbot.nextDouble();
                
                System.out.println("Please enter your second number.");
                two = calcbot.nextDouble();
                
                System.out.println("Please enter your third number.");
                three = calcbot.nextDouble();
                
                sum = (one + two + three)/2;
                
                System.out.println(" ( " +one + " + " + two + " + " + three + " ) " + "/2 is..." + sum);
                
                
            }
        }      
    

Picture of the output

Assignment X