TwoMoreQues
Code
import java.util.Scanner;
public class TwoMoreQues
{
public static void main( String[] args )
{
Scanner keyboard = new Scanner(System.in);
String a , b;
System.out.println( "You ready for two more questions? GOOOOD!!" );
System.out.println( " Think of something and I'll try to guess it! " );
System.out.println( " Question 1) Does it stay inside or outside or both? " );
a = keyboard.next();
System.out.println( " Is it a living thing? " );
b = keyboard.next();
if ( a.equals("inside") && b.equals("alive"))
{
System.out.println( " bob " );
}
if ( a.equals("inside") && b.equals("notalive"))
{
System.out.println( " pizza " );
}
if ( a.equals("outside") && b.equals("alive"))
{
System.out.println( "camels");
}
if ( a.equals("outside") && b.equals("notalive"))
{
System.out.println( " Santa " );
}
if ( a.equals("both") && b.equals("alive"))
{
System.out.println(" fish " );
}
if ( a.equals("both") && b.equals("notalive"))
{
System.out.println( " burgers " );
}
}
}
TwoMoreQues