Assignemnt #19 Asking Questions

Code

        /// Name: Drew Boxold
    /// Period: 5
    /// Program Name: 19
    /// File Name: AskingQuestions.java
    /// Date Finished: 9/30/2015
    
    import java.util.Scanner;

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

            int age;
            String heightFeet, heightInch, heightTotal;
            double weight;

            age = 18;
            heightFeet = "6";
            heightInch = "2";
            weight = 175;
            heightTotal = "6'2";


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

            System.out.print( "How tall are you in feet? " );
            heightFeet = keyboard.next();

            System.out.print( "And how many inches? " );
            heightInch = keyboard.next();
            
            System.out.print( "How much do you weigh? " );
            weight = keyboard.nextDouble();

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

Picture of the output

Assignment 19