Assignemnt #14

Code

    /// Name: Ryan Volko
    /// Period: 7  
    /// Program Name: Eleventh Program
    /// File Name: EleventhProg.java
    /// Date Finished: 9/15/2015


        public class EleventhProg
        {
            public static void main( String[] args )
            {
                String myName, myEyes, mySport , myHair;
                int myAge, myHeight, myWeight;
        
                myName = "Ryan M. Volko";
                myAge = 16;     // I look 12
                myHeight = 68;  // inches
                myWeight = 121; // lbs
                myEyes = "Blue";
                mySport = "Baseball";
                myHair = "Blonde";
        
                System.out.println( "Let's discuss " + myName + "." );
                System.out.println( "He's " + myHeight + " inches tall." );
                System.out.println( "He's " + myWeight + " pounds." );
                System.out.println( "Actually, that's pretty light." );
                System.out.println( "He's got " + myHair + " hair and " + myEyes + " eyes." );
                System.out.println( "His favorite sport is " + mySport );
        
                // This line is tricky; try to get it exactly right.
                System.out.println( "If I add " + myHeight + ", " + myAge + ", and " + myWeight
                    + " I get " + (myHeight + myAge + myWeight) + "." );
            }
        }
    

Picture of the output

Assignment 14