Assignment #47 Two More Questions

Code

    
    /// Name: Lacey Reese 
    /// Period: 5
    /// Program Name: TwoMoreQuestions
    /// File Name:   TwoMoreQuestions.java
    /// Date Finished 11/15/2015
    
   import java.util.Scanner;
    
    public class TwoMoreQuestions 
    {
        
        public static void main( String[] args )
        {
            
            Scanner keyboard = new Scanner(System.in);
            
            String q1, q2;
            
            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.println( "Question 1) Does it belong inside or outside or both? " );
            q1 = keyboard.next();
            
            System.out.println( "Question 2) Is it alive? " );
            q2 = keyboard.next();
            System.out.println();
            
            if ( q1.equals("inside") && q2.equals("yes") ) 
            {
                System.out.println( " Obviously you are thinking of a houseplant!!" );
            }
            
            if ( q1.equals("inside") && q2.equals("no") ) 
            {
                System.out.println( "Obviously you are thinking of a shower curtain. " );
            }
            
            if ( q1.equals("outside") && q2.equals("yes") ) 
            {
                System.out.println( "Obviously you are thinking of a bison." );
            }
                
                if ( q1.equals("outside") && q2.equals("no") ) 
            {
                System.out.println( "Obviously you are thinking of a billboard" );
            }
                
                if ( q1.equals("both") && q2.equals("yes") ) 
            {
                System.out.println( "Obviously you are thinking of a dog" );
            }
                    
                     if ( q1.equals("both") && q2.equals("no") ) 
            {
                System.out.println( "Obviously you are thinking of a cell phone" );
                
            }
            
        }
}
   


    

Picture of the output

// Assignment 47