Assignemnt #19 and Asking Questions

Code

/// Name: Tristan Chung
/// Period: 5
/// Program Name: Asking Questions
/// File Name: AskingQuestions.java
/// Date Finished: 9/24/2015

import java.util.Scanner;

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

		int age;
		String height1, height2;
		double weight;

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

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


		System.out.print( "How much do you weigh? " );
		weight = keyboard.nextDouble();

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

Picture of the output

Assignment 19