Assignment #14

Code

              /// Name: Jonathan Stine
              /// Period 5
              /// Program Name: MoreVariablesAndPrinting
              /// File Name: MoreVariablesAndPrinting.java
              /// Date Finished: 9/15/2015
              
              
public class MoreVariablesAndPrinting
{
    public static void main( String[] args )
    {
        String Name, Eyes, Teeth, Hair;
        int Age, Height, Weight;
        double kilosWeight, metersHeight;
        
        Name = "Jonathan Stine, Esq.";
        Age = 17; //Seniorssssss
        Height = 72; //inches
        Weight = 180; //pounds
        Eyes = "Brown";
        Teeth = "White";
        Hair = "Black";
        
        kilosWeight = Weight * 0.453592;
        metersHeight = Height * 0.0254;
        
        
        System.out.println( "Let's talk about " + Name + "." );
        System.out.println( "He's " + Height + " inches tall." +"(In metric thats " + metersHeight + " " + " meters."  );
        System.out.println( "He's " + Weight + " pounds." + "(In France that would be " + kilosWeight + " " + " Kilograms." );
        System.out.println( "What else?" );
        System.out.println( "He's got " + Eyes + " eyes and " + Hair + " hair." );
        System.out.println( "His teeth are usually " + Teeth + " " + "unless he eats blue candy" );
        
        System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
            + " I get " + (Age + Height + Weight) + "." );
        
    }
}
    

    

Code Output