Assignemnt #47 Two More Questions

Code

   
    /// Name: Jake Johnson
    /// Period: 7
    /// Program Name: TwoMoreQuestions
    /// File Name: twoMoreQuestions.java
    /// Date Finished: 11/16/2015
    
import java.util.Scanner;

public class TwoMoreQuestions
{
    public static void main (String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        String A1, A2;
        
        System.out.println("Two More Questions!!");
        System.out.println("");
        
        System.out.println("Think of something and I will try to guess it!");
        System.out.println("");
        
        System.out.print("Question 1) Does it stay inside or outside or both? ");
        A1 = keyboard.next();
        
        System.out.print("Question 2) Is it a living thing? ");
        A2= keyboard.next();
        System.out.println("");
        
        if (A1.equals("inside") && A2.equals("yes"))
        {
            System.out.println("It must be a houseplant!");
        }
        if (A1.equals("inside") && A2.equals("no"))
        {
            System.out.println("Is it a shower curtain?");
        }
        if (A1.equals("outside") && A2.equals("yes"))
        {
            System.out.println("Is it a bison???");
        }
        if (A1.equals("outside") && A2.equals("no"))
        {
            System.out.println("It has to be a billboard!");
        }
        if (A1.equals("both") && A2.equals("yes"))
        {
            System.out.println("Easy. It's a dog.");
        }
        if (A1.equals("both") && A2.equals("no"))
        {
            System.out.println("Quite obviously a cell phone.");
        }
    }
}
    

Picture of the output

This should work