Assignemnt #14
Code
/// Name: Holden Ganch
/// Period: 7
/// Program Name: fourteenth Program
/// File Name: MoreVariablesAndPrinting.java
/// Date Finished: 9/14/2015
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String myName, myEyes, myTeeth, myHair;
int myAge, myHeight, myWeight;
myName = "Holden B. Ganch";
myAge = 16; // still dont have my liscence
myHeight = 72; // inches
myWeight = 86; // kilograms
myEyes = "Blue";
myTeeth = "White";
myHair = "Dirty Blond";
System.out.println( "Let's talk about " + myName + "." );
System.out.println( "He's " + myHeight + " feet tall." );
System.out.println( "He's " + myWeight + " kilograms." );
System.out.println( "He's all solid muscle from water polo." );
System.out.println( "He's got " + myEyes + " eyes and " + myHair + " hair." );
System.out.println( "His teeth are " + myTeeth + " even though he had braces for 2 years they are still clean." );
System.out.println( "If I add his age " + myAge + ", his height " + myHeight + ", and his weight " + myWeight
+ " I get a large number" + (myAge + myHeight + myWeight) + "." );
}
}
Picture of the output