Assignment #19 Asking Questions

Code

    /// Name: Matthew Lorence
    /// Period: 5
    /// Program Name: Asking Questions
    /// File Name: AskingQuestions.java
    /// Date Finished:9/30/15
    
    import java.util.Scanner;
  
    public class AskingQuestions
    {
    	public static void main( String[] args )
    	{
            Scanner keyboard = new Scanner(System.in);
            
            int age;
            String height_inches, height_feet;
            double weight;
            
            System.out.print( "How old are you? " );
            age = keyboard.nextInt();
            
            System.out.print( "How many feet tall are you? " );
            height_feet = keyboard.next();
                    
            System.out.print( "And how many inches? " );
            height_inches = keyboard.next();
            
            System.out.print( "How much do you weigh? " );
            weight = keyboard.nextDouble();
            
            System.out.println( "So you're " + age + " old, " + height_feet + "'" + height_inches + "\"" + " tall and " + weight + " pounds." );
    	}
    }
        
    

Picture of the output

Assignment 19