Assignemnt #19

Code

/// Name: Mahima Choudhary
/// Period: 6
/// Program Name: AskingQuestions
/// File Name: AskingQuestions.java
/// Date Finished: 9/28/15

import java.util.Scanner;

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

		int age;
		int height;
		int tall;
		double weight;
        
        age = 16;
        height = 5;
        tall = 4;
        weight = 115;

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

		System.out.print( "How tall are you? " );
		height = keyboard.nextInt();
        
        System.out.print( "How many inches? " );
        tall = keyboard.nextInt();

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

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

Picture of the output

Assignment 19