Prog47: Two More Questions
///Name: Ilana Levy
///Period: 5
///Program Name: Two More Questions
///File Name: twoQuestions.java
///Date Finished: 9/15/2015
//HI MR DAVIS!!!!!!!!!!!!!!! THIS SHOULD BE 47 SO 47 WILL BE 46
import java.util.Scanner;
public class twoQuestions
{
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( "Think of something and I'll try to guess it!" );
System.out.print( "Question 1) Does it stay inside or outside or both? " );
Q1 = keyboard.next();
System.out.print( "Question 2) Is it a living thing? " );
Q2 = keyboard.next();
if ( Q1.equals( "inside") && Q2.equals( "yes" ))
{
System.out.println( "Then what else could you be thinking of besides a houseplant." );
}
else if ( Q1.equals( "inside") && Q2.equals( "no" ))
{
System.out.println( "Then what else could you be thinking of besides a shower curtain." );
}
else if ( Q1.equals( "outside") && Q2.equals( "no" ))
{
System.out.println( "Then what else could you be thinking of besides a billboard." );
}
else if ( Q1.equals( "outside") && Q2.equals( "yes" ))
{
System.out.println( "Then what else could you be thinking of besides a bison." );
}
else if ( Q1.equals( "both") && Q2.equals( "yes" ))
{
System.out.println( "Then what else could you be thinking of besides a dog." );
}
else if ( Q1.equals( "outside") && Q2.equals( "no" ))
{
System.out.println( "Then what else could you be thinking of besides a cell phone." );
}
}
}