Assignment #19 AskingQuestions
Code
/// Name: Lacey Reese
/// Period: 5
/// Program Name: AskingQuestions
/// File Name: AskingQuestions.java
/// Date Finished 9/28/2015
import java.util.Scanner;
public class AskingQuestions
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
int age;
String height;
double weight;
System.out.print( "How old are you? " );
age = keyboard.nextInt();
System.out.print( "How many feet tall are you? " );
height = keyboard.next();
System.out.print( "How many inches are you? " );
height = keyboard.next();
System.out.print( "How much do weight? " );
weight = keyboard.nextDouble();
System.out.println( "So you're " + age + " old, " + height + " tall and " + weight + " pounds." );
}
}
Picture of the output
// I.AM.LACEY