Assignment #31 Compund Boolean Expressions

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name: CompundBooleanExpressions
    /// File Name: CompundBooleanExpressions.java
    /// Date Finished 10/12/2015
    
import java.util.Scanner;

public class CompoundBooleanExpressions
{
    public static void main( String[] args )
    {
    Scanner Lacey = new Scanner(System.in);
    
        int age;
        double income, attractiveness;
        boolean allowed;
        
        System.out.println( "Enter your age: " );
        age=momo.nextInt();
        
        System.out.println( "Enter your yearly income: ");
        income=momo.nextDouble();
        
        System.out.println( "How attractive are you, on a scale from 0.0 to 10.0? " );
        attractiveness=momo.nextDouble();
        
        allowed= (age > 25 && age< 40 && ( income > 50000 || attractiveness >= 8.5) );
        
        System.out.println( "You are allowed to date my grandchild: " + allowed + " " );
    }
}
       
                               
                           
    

Picture of the output

// Assignment 31