Assignemnt #14 More Variables And Printing
Code
/// Name: DeeJay Cerezo
/// Period: 7
/// Program Name: More Variables And Printing
/// File Name: MoreVariablesAndPrinting.java
/// Date Finished: 9/17/2015
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight, Heightcm, Weightkg;
Name = "Kano Shuuya";
Age = 16; // not a lie
Height = 65; // inches
Weight = 110; // lbs
Heightcm = 165;
Weightkg = 50;
Eyes = "Decieving";
Teeth = "Sharp";
Hair = "Blonde";
System.out.println( "Let's talk about " + Name + "." );
System.out.println( "He's " + Height + " inches (or" + Heightcm + ") tall." );
System.out.println( "He's " + Weight + " (or " + Weightkg + ")pounds." );
System.out.println( "That's not very heavy at all." );
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "His teeth are usually " + Teeth + " depending on what mood he's in." );
// This line is tricky; try to get it exactly right.
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
+ " I get " + (Age + Height + Weight) + "." );
}
}
Picture of the output