Assignment 14
code
///Name: Mutsu Osoegawa
///Period: 7
///Project Name: More Variables and Printing
///File Name: MoreVariablesAndPrinting
///Date: 7/17/15
public class MoreVariablesAndPrinting
{
public static void main( String[] args )
{
String Name, Eyes, Teeth, Hair;
int Age, Height, Weight;
double Kilogram, WeightInKilograms, cm, HeightInCentimeter;
Name = "Mutsutaka K. Osoegawa";
Age = 16;
Height = 67; //inches
Kilogram= .454; //kg
Weight = 155; //lbs
WeightInKilograms = Kilogram*Weight;
cm = 2.54; //centimeter
HeightInCentimeter = Height*cm;
Eyes = "Dark Brown";
Teeth = "White";
Hair = "Black";
System.out.println( "Let'stalk about " + Name + "." );
System.out.println( "He's " + Height + " in or (" + HeightInCentimeter + "cm) tall." );
System.out.println( "He's " + Weight + "pounds or (" + WeightInKilograms + "Kg)." );
System.out.println( "Actually, that's not too heavy." );
System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
System.out.println( "His teeth are usually " + Teeth + " depending on the coffee." );
System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight + " I get "
+ (Age + Height + Weight) + "." );
}
}