Assignemnt #47 Two More Questions

Code

    ///Name: Prooz Fereydouni
    ///Period: 7
    ///Project Name: Two More Questions
    ///File Name: TMQ.java
    ///Date: 11/2/2015
  
import java.util.Scanner;
public class TMQ
{
    public static void main(String[] args)
    {
        Scanner keyboard = new Scanner(System.in);
        
        String answer;
        int condition1=0, condition2=0;
        
        System.out.println( "TWO MORE QUESTIONS, BABY!");
        System.out.println( "Think of an object, I'll try to guess it.");
        
        System.out.println("");
        
        System.out.println("Question 1) Does it stay inside or outside or both?");
        answer = keyboard.next();
        
        System.out.println("");
        
        if(answer.equals("inside"))
        {
            condition1 = 1;
        }
         if(answer.equals("outside"))
        {
            condition1 = 2;
        }
         if(answer.equals("both"))
        {
            condition1 = 3;
        }
        
        System.out.println("Question 2) Is it a living thing?");
        answer = keyboard.next();
        
        System.out.println("");
        
       if(answer.equals("yes"))
        {
            condition2 = 1;
        } 
        if(answer.equals("no"))
        {
            condition2 = 2;
        }
        if(condition1 == 1 && condition2 == 1)
        {
            System.out.println("My guess is that you are thinking of a houseplant.");
        }
        if(condition1 == 1 && condition2 == 2)
        {
            System.out.println("My guess is that you are thinking of a shower curtain.");
        }
        if(condition1 == 2 && condition2 == 1)
        {
            System.out.println("My guess is that you are thinking of a bison.");
        }
        if(condition1 == 2 && condition2 == 2)
        {
            System.out.println("My guess is that you are thinking of a billboard.");
        }
        if(condition1 == 3 && condition2 == 1)
        {
            System.out.println("My guess is that you are thinking of a dog.");
        }
        if(condition1 == 3 && condition2 == 2)
        {
            System.out.println("My guess is that you are thinking of a cell phone.");
        }
        System.out.println("I would ask you if I'm right, but I don't actully care.");
    }
}

    

Picture of the output

assignment47