Assignemnt #19: Asking Questions

Code

    /// Name: Kelsey Lieberman
    /// Period 5
    /// Program Name: AskingQuestions
    /// File Name: AskingQuestions.java
    /// Date Finished: 9/25/2015
    
import java.util.Scanner;

public class AskingQuestions
{
        public static void main(String[] args)
        {
            Scanner keyboard = new Scanner(System.in);
                
            int age, feetTall, inchesTall;
            double weight;
            
            System.out.print("How old are you?");
            age = keyboard.nextInt();
        
            System.out.print("How many feet tall are you?");
            feetTall = keyboard.nextInt();
            
            System.out.print("And how many inches?");
            inchesTall = keyboard.nextInt();
            
            System.out.print("How much do you weigh?");
            weight = keyboard.nextDouble();
            
            System.out.println("So, you're " + age + " years old, " + feetTall + "'" + inchesTall + "\" tall, and " + weight + " pounds.");
        }
}

    

Picture of the output

Assignment 19