Assignment 19: Asking Questions

Code

    /// Name: Ryan McAteer
    /// Period: 5
    /// Program Name: Asking Questions
    /// File Name: Assignment19.java
    /// Date Finished: 9/21/15

            import java.util.Scanner;

class Assignment19 
{
      public static void main(String[] args) 
      {
            Scanner keyboard = new Scanner(System.in);

            int age;
            int feet;
            int inches;
            double weight;

            System.out.print( "How old are you? " );
            age = keyboard.nextInt();

            System.out.print( "How tall are you (In feet)? " );
            feet = keyboard.nextInt();

            System.out.print( "How tall are you (In inches)? " );
            inches = keyboard.nextInt();
          
            System.out.print( "How much do you weigh (In pounds)? " );
            weight = keyboard.nextDouble();

            System.out.println( "So you're " + age + " years old, " + feet + " feet tall, " + inches + " tall and " + weight + " pounds." );
	}
}
    

Picture of the output

Assignment 19