Assignemnt #29

Code

  /// Name: Sam Wilson
  /// Period: 6
  /// Program Name: noandmaybe
  /// File Name: noandmaybe.java
  /// Date Finished: 10/21/2015
 
  import java.util.Scanner;
  
  public class noandmaybe
  {
      public static void main( String[] args )
      {
          Scanner keyboard = new Scanner(System.in);
  
          int age;
 
         System.out.print( "How old are you? " );
         age = keyboard.nextInt();
 
         if ( age < 12 )
         {
             System.out.println( "You are too young to create a Facebook account." );
         }
          
           if ( age >= 12 )
         {
             System.out.println( "You're old enough to go out past 7PM!" );
         }
          
         if ( age < 17 )
         {
             System.out.println( "You are too young to watch an R movie." );
         }
          
         if ( age >= 17 )
         {
             System.out.println( "You're old enough to go see The Hangover." );
         } 
          
          
         if ( age < 18 )
         {
             System.out.println( "You are too young to get a tattoo." );
         }
          
         if ( age < 18 )
         {
             System.out.println( "You're old enough to be an adult..." );
         } 
          
          
         if ( age < 21 )
         {
             System.out.println( "You are too young to drink alcohol." );
         }
          
           if ( age >= 21 )
         {
             System.out.println( "You're old enough to legally buy recrational drugs in 4 states!" );
         }
          
         if ( age < 40 )
         {
             System.out.println( "You are too young to run for President of the United States." );
             System.out.println( "How sad!  Only about the President part!!!" );
         }
          
                   if ( age >= 40 )
         {
             System.out.println( "You're too old to go play laser tag drunk, sorry bud." );
         }
          
          if (age >= 65)
          {
              System.out.println("You can finally retire!");
          }
              
          if (age < 65)
          {
              System.out.println("You're not old enough to buy that condo in Naples Florida.");
          }
              
      
          
     }
 }

    

Picture of the output

Assignment 29