Assignment #31 and ShallowGrandmother

Code

      /// Name: Jason Kim
      /// Period: 7
      /// Program Name: ShallowGrandmother
      /// File Name: ShallowGrandmother.java
      /// Date Finished:9/30/15
      
      import java.util.Scanner;
      
      public class ShallowGrandmother
      {
          public static void main (String[] args)
          {
              Scanner keyboard = new Scanner(System.in);
              
              int age;
              double income, attractiveness;
              boolean allowed;
              
              System.out.print( "Enter your age: ");
              age = keyboard.nextInt();
              
              System.out.print( "Enter your yearly income: " );
              income = keyboard.nextDouble();
              
              System.out.print( "How attractive are you, on a scale from 0.0 to 10.0? " );
              attractiveness = keyboard.nextDouble();
              
              allowed = ( age > 25 && age <40 && ( income > 50000 || attractiveness >= 8.5) );
              
              System.out.println( "You are allowed to date my grandchild: " + allowed ) ;
              
              //Study Drill
              System.out.println();
              int x = 3 | 5;
              int y = 3 & 5;
              System.out.println("x =" + x );
              System.out.println("y =" + y );
              //3 = 011
              //5 = 101
              //3 | 5 is 111 = 7
              //3 & 5 is 001 = 1
          }
    

Picture of the output

Assignment31