Assignment 14
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight;
Name = "Maxwell L. Wickboldt";
Age = 17;
Height = 70;
Weight = 155;
Eyes = "Green";
Hair = "Brown";
System.out.println( "Let's talk about " + Name + "." );
System.out.println( "He's " + Height + " inches tall. (" + (Height * 2.54) + " cm)" );
System.out.println( "He's " + Weight + " pounds. (" + (Weight * 0.45392) + " kg)" );
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + "." );
}
}