Assignment #19 and AskingQuestions
Code
/// Name: Jason Kim
/// Period: 7
/// Program Name: AskingQuestions
/// File Name: AskingQuestions.java
/// Date Finished:9/21/15
import java.util.Scanner;
public class AskingQuestions
{
public static void main( String[] args)
{
Scanner keyboard = new Scanner(System.in);
int age;
String HeightInch, HeightFeet;
double weight;
System.out.print( "How old are you? ");
age = keyboard.nextInt();
System.out.print( "How many feet tall are you? ");
HeightFeet = keyboard.next();
System.out.print( "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, " + HeightFeet + "'" + HeightInch + "\" tall and " + weight + " pounds.");
}
}
Picture of the output