Assignemnt #14: More Variables and Printing

Code

      /// Name: Cassie
      /// Period: 6
      /// Program Name: More Variables and Printing
      /// File Name: MoreVariablesAndPrinting.java
      /// Date Finished: 9/21/2016
          
      class MoreVariablesAndPrinting
      {
          public static void main( String[] args )
          {
              String Name, Eyes, Teeth, Hair;
              int Age, Height, Weight;
              double Heightcm, Weightkg;
      
              Name = "Cassie Rapp";
              Age = 17;     // not a lie
              Height = 64;  // inches
              Weight = 135; // lbs
              Heightcm = Height * 2.54;
              Weightkg = Weight * 0.453592;        
              Eyes = "Blue";
              Teeth = "White";
              Hair = "Blonde";
      
              System.out.println( "Let's talk about " + Name + "." );
              System.out.println( "She's " + Height + " inches tall." );
              System.out.println( "She's " + Weight + " pounds." );
              System.out.println( "Actually, that's not too heavy." );
              System.out.println( "She's got " + Eyes + " eyes and " + Hair + " hair." );
              System.out.println( "Her teeth are usually " + Teeth + " depending on the coffee." );
      
              System.out.println( "If I add " + Age + ", " + Height + ", and " + Weight
                  + " I get " + (Age + Height + Weight) + "." );
          }
      }
    

Picture of the output

Assignment 14