jeudi 25 mai 2017

How do I make these these multiple choice questions show up in a random order

   public static void Rap(){
    Scanner input=new Scanner (System.in); 
    int correct = 0;


  //1

Blockquote

System.out.println("Complete the lyrics(hint travis scott): 'dont you open up that... \n A.can of coke \n B.window \n C. back door \n D. water bottle " ); String x=input.next(); if (x.equalsIgnoreCase("b")){

        System.out.println("Correct");
        correct++;
}
    if(x.equalsIgnoreCase("a")) {
        System.out.println("incorrect");
    }
    if(x.equalsIgnoreCase("c")) {
        System.out.println("incorrect");
    }
    if(x.equalsIgnoreCase("d")) {
        System.out.println("incorrect");
    }
    //2
    System.out.println("Who made the banger 'Paris'  \n A.$UICIDE BOY$  \n B.Migos \n C. Adam 22 \n D. Pouya "    );
    String v=input.next();
        if (v.equalsIgnoreCase("a")){


            System.out.println("Correct");
            correct++;
    }
        if(v.equalsIgnoreCase("b")) {
            System.out.println("incorrect");
        }
        if(v.equalsIgnoreCase("c")) {
            System.out.println("incorrect");
        }
        if(v.equalsIgnoreCase("d")) {
            System.out.println("incorrect");
        }
        //3
        System.out.println("How many copies of Nas's illmatic sell  \n A.2,400,323  \n B.1,782,613 \n C. 775,000 \n D. 1,686.232 "    );
        String e=input.next();
            if (e.equalsIgnoreCase("d")){


                System.out.println("Correct");
                correct++;
        }
            if(e.equalsIgnoreCase("b")) {
                System.out.println("incorrect");
            }
            if(e.equalsIgnoreCase("c")) {
                System.out.println("incorrect");
            }
            if(e.equalsIgnoreCase("a")) {
                System.out.println("incorrect");
            }
            //4
            System.out.println("Which artist isnt from Canada  \n A.PartyNextDoor  \n B.Roy Woods \n C. Pressa \n D. Tracy grey"    );
            String r=input.next();
                if (r.equalsIgnoreCase("d")){


                    System.out.println("Correct");
                    correct++;
            }
                if(r.equalsIgnoreCase("b")) {
                    System.out.println("incorrect");
                }
                if(r.equalsIgnoreCase("c")) {
                    System.out.println("incorrect");
                }
                if(r.equalsIgnoreCase("a")) {
                    System.out.println("incorrect");
                }
                //5
                System.out.println("in the song PURRPOSELY by Denzel curry who can be heard in the background  \n A.JK The Reaper \n B.Robb Banks \n C.XXXTentacion \n D. Ruby Tha Cherry"    );
                String y=input.next();
                    if (y.equalsIgnoreCase("c")){


                        System.out.println("Correct");
                        correct++;
                }
                    if(y.equalsIgnoreCase("b")) {
                        System.out.println("incorrect");
                    }
                    if(y.equalsIgnoreCase("a")) {
                        System.out.println("incorrect");
                    }
                    if(y.equalsIgnoreCase("d")) {
                        System.out.println("incorrect");
                    }
                    //6
                    System.out.println("Finish the lyrics : Aye, I dont need a Strap (hint XXXtentacion).... \n A.I let my blade hit  \n B.ill call the cops \n C. but i know how to pop a cap \n D. but watch him run "    );
                    String rare=input.next();
                        if (rare.equalsIgnoreCase("a")){


                            System.out.println("Correct");
                            correct++;
                    }
                        if(rare.equalsIgnoreCase("b")) {
                            System.out.println("incorrect");
                        }
                        if(rare.equalsIgnoreCase("c")) {
                            System.out.println("incorrect");
                        }
                        if(rare.equalsIgnoreCase("d")) {
                            System.out.println("incorrect");
                        }
                        //7
                        System.out.println(" which lyrics did BONES say  \n A. LOOK AT ME  \n B. you say got the guns but ive never seen you bang  \n C.Out side in a all black ride \n D. Ill kill my self if it benefits my friends "    );
                        String sesh=input.next();
                            if (sesh.equalsIgnoreCase("b")){


                                System.out.println("Correct");
                                correct++;
                        }
                            if(sesh.equalsIgnoreCase("a")) {
                                System.out.println("incorrect");
                            }
                            if(sesh.equalsIgnoreCase("c")) {
                                System.out.println("incorrect");
                            }
                            if(sesh.equalsIgnoreCase("d")) {
                                System.out.println("incorrect");
                            }
                        //8
                            System.out.println("What was Xavier wulfs original name  \n A.lethel wulf \n B.lil wulf \n C. ethelwulf \n D. yung wulf "    );
                            String hollow=input.next();
                                if (hollow.equalsIgnoreCase("c")){


                                    System.out.println("Correct");
                                    correct++;
                            }
                                if(hollow.equalsIgnoreCase("b")) {
                                    System.out.println("incorrect");
                                }
                                if(hollow.equalsIgnoreCase("a")) {
                                    System.out.println("incorrect");
                                }
                                if(hollow.equalsIgnoreCase("d")) {
                                    System.out.println("incorrect");
                                }
                            //9
                                System.out.println("XXXTentacion Sampled whos song in RIP ROACH  \n A.ski mask the slump god's  \n B.chris travis's \n C. playboi carti's \n D. SpaceGhostPurrp "    );
                                String mo=input.next();
                                    if (mo.equalsIgnoreCase("d")){


                                        System.out.println("Correct");
                                        correct++;
                                }
                                    if(mo.equalsIgnoreCase("b")) {
                                        System.out.println("incorrect");
                                    }
                                    if(mo.equalsIgnoreCase("c")) {
                                        System.out.println("incorrect");
                                    }
                                    if(mo.equalsIgnoreCase("a")) {
                                        System.out.println("incorrect");
                                    }
                            //10
                                    System.out.println("Spaceghostpurrp was beef with which A$AP Member \n A.A$AP Bari \n B.A$AP Rocky \n C. playboi carti \n D. A$AP Ferg"    );
                                    String asap=input.next();
                                        if (asap.equalsIgnoreCase("a")){


                                            System.out.println("Correct");
                                            correct++;
                                    }
                                        if(asap.equalsIgnoreCase("b")) {
                                            System.out.println("incorrect");
                                        }
                                        if(asap.equalsIgnoreCase("c")) {
                                            System.out.println("incorrect");
                                        }
                                        if(asap.equalsIgnoreCase("d")) {
                                            System.out.println("incorrect");
                                        }
                                //11
                                        System.out.println("XXXTentacion Sampled whos song in ILOVEITWHENTHEYRUN  \n A.Gucci mane's  \n B.Soujaboy's \n C. oj da juiceman's \n D. outkast's"    );
                                        String membersonly=input.next();
                                            if (membersonly.equalsIgnoreCase("b")){


                                                System.out.println("Correct");
                                                correct++;
                                        }
                                            if(membersonly.equalsIgnoreCase("d")) {
                                                System.out.println("incorrect");
                                            }
                                            if(membersonly.equalsIgnoreCase("c")) {
                                                System.out.println("incorrect");
                                            }
                                            if(membersonly.equalsIgnoreCase("a")) {
                                                System.out.println("incorrect");
                                            }
                                    //12
                                            System.out.println("finish the lyrics Quater brick half a brick whole brick(gucci mane)............ \n A.yo  \n B.bang \n C. ok \n D. aye "    );
                                            String oj=input.next();
                                                if (oj.equalsIgnoreCase("d")){


                                                    System.out.println("Correct");
                                                    correct++;
                                            }
                                                if(oj.equalsIgnoreCase("b")) {
                                                    System.out.println("incorrect");
                                                }
                                                if(oj.equalsIgnoreCase("c")) {
                                                    System.out.println("incorrect");
                                                }
                                                if(oj.equalsIgnoreCase("a")) {
                                                    System.out.println("incorrect");
                                                }
                                            //13    
                                                System.out.println(" in the song Ski mask SmokePurrp says he feels like who \n A.the under taker \n B.michael jordan \n C. Tupac shakur \n D. John Cena "    );
                                                String sp=input.next();
                                                    if (sp.equalsIgnoreCase("d")){


                                                        System.out.println("Correct");
                                                        correct++;
                                                }
                                                    if(sp.equalsIgnoreCase("b")) {
                                                        System.out.println("incorrect");
                                                    }
                                                    if(sp.equalsIgnoreCase("c")) {
                                                        System.out.println("incorrect");
                                                    }
                                                    if(sp.equalsIgnoreCase("a")) {
                                                        System.out.println("incorrect");
                                                    }
                                                    //14
                                                    System.out.println("Night lovell is from which city   \n A.LA  \n B.Ottowa \n C. San diego \n D. monteral "    );
                                                    String nl=input.next();
                                                        if (nl.equalsIgnoreCase("b")){


                                                            System.out.println("Correct");
                                                            correct++;
                                                    }
                                                        if(nl.equalsIgnoreCase("d")) {
                                                            System.out.println("incorrect");
                                                        }
                                                        if(nl.equalsIgnoreCase("c")) {
                                                            System.out.println("incorrect");
                                                        }
                                                        if(nl.equalsIgnoreCase("a")) {
                                                            System.out.println("incorrect");
                                                        }
                                                        //15
                                                        System.out.println("Ghostemane and lil peep were apart of which group  \n A.Schema Posse  \n B.Gothboi Clique \n C. Members Only \n D. Very Rare "    );
                                                        String gm=input.next();
                                                            if (gm.equalsIgnoreCase("a")){


                                                                System.out.println("Correct");
                                                                correct++;
                                                        }
                                                            if(gm.equalsIgnoreCase("b")) {
                                                                System.out.println("incorrect");
                                                            }
                                                            if(gm.equalsIgnoreCase("c")) {
                                                                System.out.println("incorrect");
                                                            }
                                                            if(gm.equalsIgnoreCase("d")) {
                                                                System.out.println("incorrect");
                                                            }
                                                        //16
                                                        System.out.println("finish the lyrics 'i used to think i love you'..........(lil peep)  \n A.now i moved on  \n B.yeah i thought you were my boo \n C. but you never loved me \n D. now i know it aint true "    );
                                                        String lp=input.next();
                                                                if (v.equalsIgnoreCase("d")){


                                                                    System.out.println("Correct");
                                                                    correct++;
                                                            }
                                                                if(lp.equalsIgnoreCase("b")) {
                                                                    System.out.println("incorrect");
                                                                }
                                                                if(lp.equalsIgnoreCase("c")) {
                                                                    System.out.println("incorrect");
                                                                }
                                                                if(lp.equalsIgnoreCase("a")) {
                                                                System.out.println("incorrect");
                                                                }
                    System.out.println("You got "+ correct++ +"/15 good or bad job i guess");




Aucun commentaire:

Enregistrer un commentaire