Assignemnt #25

Code

/// Name: Ryan Volko
/// Period: 7  
/// Program Name: Dumb Calculator Program
/// File Name: DumbCalculator.java
/// Date Finished: 9/30/2015

import java.util.Scanner;

    public class DumbCalculator
 {
      public static void main( String[] args )
      {
          double one, two, three, four;
 
         Scanner keyboard = new Scanner(System.in);
 
         System.out.print( "First number? ");
         one = keyboard.nextDouble();
         
         System.out.print( "Second number? ");
         two = keyboard.nextDouble();
         
         System.out.print( "Third number? ");
         three = keyboard.nextDouble();
         
         four = (one + two + three) / 2;
         
         System.out.println( "So (" + one + " + " + two + " + " + three + " ) /2 is... " + four + " " ); 
         
         
         }
 }

    

Picture of the output

Assignment 25