Assignemnt #14 and More Variables and Printing

Code

    /// Name: Kyle Ivy
    /// Period: 5
    /// Program Name: MoreVariablesandPrinting
    /// File Name: MoreVariablesandPrinting.java
    /// Date Finished: 9/17/2015
    
    
    public class MoreVariablesandPrinting
    {
    
        public static void main( String[] args )
        {
        
            String myName, myEyes, myTeeth, myHair;
            int myAge, myHeight, myWeight;
            double Mass, Tall ;
            
                myName = "Kyle Ivy";
                myAge = 17;
                myHeight = 69;
                myWeight = 140;
                myEyes = "Brown-Gold";
                myTeeth = "White";
                myHair = "Brown";
            
                Mass = myWeight * .453592 ;
                Tall = myHeight * 2.54 ;
                
                System.out.println( "Let's talk about" + myName + "." );
                System.out.println( "He's " + myHeight+ " inches (or " + Tall + " cm) tall." );
                System.out.println( "He's " + myWeight+ " pounds (or " + Mass + " kilos) ." );
                System.out.println( "He's got " + myEyes + " eyes and" + myHair + "hair." );
                System.out.println( "His teeth are " + myTeeth );
                
                System.out.println( "If I add " + myAge + "," + myHeight + " , and " + myWeight + " I get " + (myAge + myHeight + myWeight) + "." );
        }
    }
    

prog14.PNG

Assignment 1