Assignemnt #11

Code

    /// Name: Sam Wilson
    /// Period: 6
    /// Program Name: More Variables and Printing
    /// File Name: var_print.java
    /// Date Finished: 9/23/2015
    
        public class var_print
            {
                public static void main( String[] args)
                    {
       
            String myName, myEyes, myTeeth, myHair;
            int myAge, myHeight, myWeight;
            
            myName = "Sam Wilson";
            myEyes = "Blue";
            myTeeth = "Blinding White"; 
            myHair = "Brownish";
            
            myAge = 17;
            myHeight = 68;
            myWeight = 148;
            
            System.out.println(" Let's talk about " +myName+".");
            System.out.println("This guy's "+myHeight+" inches tall.");
            System.out.println("This guy's "+myWeight+" pounds.");
            System.out.println("Actually that's fairly light.");
            System.out.println("This guy's got "+myEyes+" eyes and "+myHair+ " hair.");
            System.out.println("This guy's teeth are insanely "+myTeeth+" at all times.");
            //tricky?
            System.out.println("If I add" +myAge+", "+myHeight+", and "+myWeight+ " I get " 
                               +(myAge+myHeight+myWeight)+".");
            
            
        
        }
    }
    

Picture of the output

Assignment 10