Assignemnt #25: A Dumb Calculator

Code

    /// Name: Cassie
    /// Period: 6
    /// Program Name: A Dumb Calculator
    /// File Name: DumbCalculator.java
    /// Date Finished: 10/07/2015
    
    import java.util.Scanner;
    
    class DumbCalculator
    {
        public static void main( String[] args )
        {
            Double first, second, third, solution;
            
            Scanner keyboard = new Scanner( System.in );
            
            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 thrid number? " );
            third = keyboard.nextDouble();
            
            solution = ( first + second + third) / 2;
            
            System.out.println( "( " + first + " + " + second + " + " + third + " ) / 2 is " + solution );
        }
    }
    

Picture of the output

Assignment 25