Assignemnt #13

Code

          /// Name: Holden Ganch
          /// Period: 7
          /// Program Name: Thirteenth Program
          /// File Name: CreatingVariables.java
          /// Date Finished: 9/14/2015



        public class CreatingVariables
          {
             public static void main( String[] args )
             {
                 int H, y, age;
                 double seconds, p, checking;
                 String firstName, last_name, title;
         
                 H = 8;
                 y = 654;
                 age = 39;
         
                 seconds = 6.31;
                 p = 3.14159265359;
                 checking = 8888.97;
         
                 firstName = "Holden";
                 last_name = "Ganch";
                 title = "Sir";
         
                 System.out.println( "The variable H contains " + H );
                 System.out.println( "The value " + y + " is stored in the variable y." );
                 System.out.println( "my time to eat a entire gummy worm is " + seconds + " seconds." );
                 System.out.println( "My favorite irrational number is Pi : " + p );
                 System.out.println( "I wish i had $" + checking + "!" );
                 System.out.println( "My full name is " + title + " " + firstName + last_name );
             }
         }



    

Picture of the output

Assignment 13