Assignment #14 and Eleventh Program
Code
/// Name: Georgi Atanasov
/// Period: 5
/// Program Name: MoreVariablesAndPrinting
/// File Name: MoreVariablesAndPrinting.java
/// Date Finished: 9/21/2015
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Weight;
double Height;
Name = "Georgi Atanasov";
Age = 6570; // not a lie
Height = 187.96; // centimeters
Weight = 2880; // oz
Eyes = "Brown";
Hair = "Dark Brown";
System.out.println( "Let's talk about " + Name + "." );
System.out.println( "He's " + Height + " centimeters tall." );
System.out.println( "He's " + Weight + " ounces." );
System.out.println( "Actually, that's not too heavy." );
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
// This line is tricky; try to get it exactly right.
System.out.println( "If I add " + Age + " in days, " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + "." );
}
}
Picture of the output