Assignment #39 and Little Quiz/h1>

Code

  /// Name: Josh Bautista
  /// Period: 6
  /// Program Name: Little Quiz
  /// File Name: LittleQuiz.java
  /// Date Finished: 12/8/2015
  
import java.util.Scanner;

public class LittleQuiz
{
    public static void main( String[] args) 
    {
        Scanner keyboard = new Scanner(System.in);
        
        String name, choice;
        int choice2, choice3, choice4;
        
        System.out.print(" Please input name ");
        name = keyboard.next();
        System.out.println(" Hello " + name + " are you ready for a little quiz? ");
        System.out.print(" Yes or No ");
        choice = keyboard.next();
        System.out.println( choice + ", either way you are taking this quiz!");
        System.out.println( " Here it comes ");
        System.out.println( " Q1) What is the capital of New Denmark ");
        System.out.println( " 1) London ");
        System.out.println( " 2) Manchester " );
        System.out.println( " 3) Liverpool ");
        System.out.println( " 4) What? New Denmark??? ");
        choice2 = keyboard.nextInt();
        
        if ( choice2 == 1)
        {
            System.out.println( "Wrong" );
        }
         if ( choice2 == 2)
        {
            System.out.println( "Wrong" );
        }
         if ( choice2 == 3)
        {
            System.out.println( "Wrong" );
        }
         
         if ( choice2 == 4 )
        {
            System.out.println( "Coooorect!");
        }
        System.out.println(" Next Question!!!! ");
        System.out.println(" You have two Gorillas named Bo BO, each day in order to be fed they must say 'Bo Bo'. On Halloween however, one Gorilla decided to say 'Boo', what do you do?");
        System.out.println(" 1) Give him food ");
        System.out.println(" 2) Ignore him and give the other Gorilla food ");
        System.out.println(" 3) Wait until he says 'Bo BO' ");
        System.out.println(" 4) Dispatch him before he becomes smarter and enslaves the world ");
        choice3 = keyboard.nextInt();
        
        if ( choice3 == 1)
        {
            System.out.println(" Hmmmmmm, not a animal abuser I see ");
        }
        if ( choice3 == 2)
        {
            System.out.println(" Very harsh you @#!$ ");
        }
        if ( choice3 == 3)
        {
            System.out.println(" Wow, no fun ");
        }
        if ( choice3 == 4)
        {
            System.out.println(" Not what I was thinking, but you actually have a point");
        }
        System.out.println(" Here comes the last question!");
        System.out.println(" If you are approached by a bald man wearing black glasses, what do you do?");
        System.out.println(" 1) Fight him ");
        System.out.println(" 2) Wait and here what he says ");
        System.out.println(" 3) Run away ");
        System.out.println(" 4) Point at his head and yell 'BALD BALD BALD'!");
        choice4 = keyboard.nextInt();
        
        if ( choice4 == 1)
        {
            System.out.println(" Square up! ");
        }
        if ( choice4 == 2)
        { 
            System.out.println(" Have you ever heard of stranger danger?");
        }
        if ( choice4 == 3)
        {
            System.out.println(" Good you've know about stranger danger!");
        }
        if ( choice4 == 4)
        {
            System.out.println(" BALD BALD BALD BALD");
        }
        if ( choice2 == 4 && choice3 == 4 && choice4 == 1)
        {
            System.out.println(" Overall, you got 3 out of 3 right!!!!!! Good $#@!$*% job!");
        }
        else if ( choice2 == 1 && choice3 == 4 && choice4 == 1)
        {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
        else if ( choice2 == 2 && choice3 == 4 && choice4 == 1)
        {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
        else if ( choice2 == 3 && choice3 ==4 && choice4 == 1)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
         else if ( choice2 == 4 && choice3 ==1 && choice4 == 1)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
         else if ( choice2 == 4 & choice3 ==2 & choice4 == 1)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
          else if ( choice2 == 4 && choice3 ==3 && choice4 == 1)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
         else if ( choice2 == 4 && choice3 ==4 && choice4 == 2)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
         else if ( choice2 == 4 && choice3 ==4 && choice4 == 3)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        }
         else if ( choice2 == 4 && choice3 ==4 && choice4 == 4)
         {
            System.out.println(" Overall, you got 2 out of 3 right!!!!!! Ess alright");
        } 
        else if ( choice2 == 1 && choice3 ==1 && choice4 == 2)
         {
            System.out.println(" Overall, you got 0 out of 3 right!!!!!! Ess alright");
        } 
        else if ( choice2 == 2 && choice3 ==2 && choice4 == 3)
         {
            System.out.println(" Overall, you got 0 out of 3 right!!!!!! Ess alright");
        } 
        else if ( choice2 == 3 && choice3 ==3 && choice4 == 4)
         {
            System.out.println(" Overall, you got 0 out of 3 right!!!!!! Ess alright");
        } 
        System.out.println(" Thanks for playing! ");
        
             
             
                

        
    }
}
    

Picture of the output

Assignment 39