Assignment #47 and Two More Questions

Code

    /// Name: Lauren Baird
    /// Period: 7
    /// Program Name: Two More Questions
    /// File Name: TwoMoreQuestions.java
    /// Date Finished: 10/20/2015
    
    import java.util.Scanner;
    
    public class TwoMoreQuestions
    {
        public static void main( String[] args )
        {
            Scanner keyboard = new Scanner(System.in);
            
            String first, second;
            
            System.out.println( "TWO MORE QUESTIONS, BABY!" );
            
            System.out.println();
            
            System.out.println( "Think of something and I'll try to guess it!" );
            
            System.out.println();
            
            System.out.print( "Question 1) Does it stay inside, outside, or both? " );
            first = keyboard.next();
            
            System.out.print( "Question 2) It it a living thing? ");
            second = keyboard.next();
            
            System.out.println();
            
            if ( first.equals( "inside" ) && second.equals ( "yes" ) )
            {
                System.out.println( "You are thinking of an indoor cat, obviously." );
            }
            
            if ( first.equals( "inside" ) && second.equals ( "no" ) )
            {
                System.out.println( "You must be thinking of a sofa." );
            }
            
            if ( first.equals( "outside" ) && second.equals ( "yes" ) )
            {
                System.out.println( "You are clearly thinking of a lion." );
            }
            
            if ( first.equals( "outside" ) && second.equals ( "no" ) )
            {
                System.out.println( "You are thinking of a car." );
            }
            
            if ( first.equals( "both" ) && second.equals ( "yes" ) )
            {
                System.out.println( "You must be thinking of a dog!" );
            }
            
            if ( first.equals( "both" ) && second.equals ( "no" ) )
            {
                System.out.println( "You are thinking of a phone." );
            }
        }
    }  
    

Picture of the output

Assignment #47