Assignemnt #19 and Asking Questions
Code
/// Name: Nick Cerdan
/// Period: 6
/// Program Name: AskingQuestions
/// File Name: AskingQuestions.java
/// Date Finished: 9/17/15
import java.util.Scanner;
public class AskingQuestions
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int age, heightin;
String heightft;
double weight;
System.out.print( "How old are you? " );
age = keyboard.nextInt();
System.out.print( "How tall are you in feet? " );
heightft = keyboard.next();
System.out.print( "How many inches? " );
heightin = keyboard.nextInt();
System.out.print( "How much do you weigh? " );
weight = keyboard.nextDouble();
System.out.println( "So you're " + age + " old, " + heightft + " feet, " + heightin + "inches tall, and " + weight + " pounds." );
}
}