Assignemnt #14

More Variables

public class MoreVariablesAndPrinting
{
    public static void main( String[] args )
    {
        String Name, Eyes, Teeth, Hair;
        int Age, Height, Weight;
        double kilosWeight, metersHeight;
        
        Name = "Jacob Worthington.";
        Age = 18; //Seniorityyyyyyy
        Height = 76; //inches
        Weight = 165; //pounds
        Eyes = "Blue";
        Teeth = "White";//ish
        Hair = "Blonde";// but kinda brown at the same time
        
        kilosWeight = Weight * 0.453592;
        metersHeight = Height * 0.0254;
        
        
        System.out.println( "Let's talk about " + Name + ". I Mean, he's pretty cool" );
        System.out.println( "He's " + Height + " inches tall." +"(In metric thats " + metersHeight + " " + " meters."  );
        System.out.println( "He's " + Weight + " pounds." + "(In Europe that would be around " + 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'd get " + (Age + Height + Weight) + "." );
        
    }
}

    

Picture of the output

Assignment 14