Assignemnt #14 and Eleventh Program
Code
/// Name: Connor Siri
/// Period: 7
/// Program Name: More
/// File Name: More.java
/// Date Finished: 9/11/2015
class More {
public static void main(String[] args) {
String myName, myEyes, myTeeth, myHair;
int myAge, myHeight, myWeight;
myName = "Connor S. Siri";
myAge = 16;
myHeight = 65; //Inches 165.1 centimeters
myWeight = 145; //Pounds 65.7709 in kilograms
myEyes = "Blue";
myTeeth = "Purple";
myHair = "Blonde";
System.out.println( "Let's talk about " + myName + "." );
System.out.println( "He's " + myHeight + " inches tall." );
System.out.println( "He's " + myWeight + " pounds." );
System.out.println( "Actually, that is a good size." );
System.out.println( "He's got " + myEyes + " eyes and " + myHair + " hair." );
System.out.println( "His teeth are usually " + myTeeth + " depending on the Tea." );
System.out.println( "If I add " + myAge + ", " + myHeight + ", and " + myWeight
+ " I get " + (myAge + myHeight + myWeight) + "." );
}
}
Picture of the output