Assignment #14 More Variables and Printing

Code

    /// Name: John Huh
    /// Period: 6
    /// Program Name: More Variables and Printing
    /// File Name: MoreVariablesAndPrinting.java
    /// Date Finished: 9/11/2015

        public class MoreVariablesAndPrinting
        {
            public static void main( String[] args )
            {
                String Name, Eyes, Teeth, Hair;
                int Age, Height, Weight;
            
                Name = "John T. Huh";
                Age = 16;
                Height = 71; //inches
                Weight = 137;
                Eyes = "Brown";
                Teeth = "White";
                Hair = "Black";
            
                System.out.println( "Let's talk about " + Name + "." );
                System.out.println( "He's " + Height + " inches (or " + ( Height * 2.54 ) + " cm) tall." );
                System.out.println( "He's " + Weight + " pounds (or " + ( Weight * 0.45 ) + " kg)." );
                System.out.println( "I guess that may be standard for his age?" );
                System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
                System.out.println( "His teeth are usually " + Teeth );
                System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight + " I get " + (Age + Height + Weight ) + "." );
            }
        }
    

Picture of the output

Assignment 1