forked from We-are-Trying-Our-Best/Final-Project
/
Base Code: FinalProject
730 lines (684 loc) · 29.2 KB
/
Base Code: FinalProject
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
# Final-Project
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
public class FinalProject {
public static void main(String [] args) {
Scanner input = new Scanner(System.in);
boolean isValid = true;
while (isValid) {
//numb of players
System.out.println("Enter number of players (1 or 2): ");
int numOfPlayers = input.nextInt();
if (numOfPlayers == 1) {
isValid = false;
onePlayer();
}
if (numOfPlayers == 2) {
isValid = false;
twoPlayers();
}
if (numOfPlayers != 1 && numOfPlayers != 2) {
System.out.println("Try again, hoe!");
isValid = true;
}
}
}
public static void onePlayer() {
Scanner input = new Scanner(System.in);
int playerScore = 0;
System.out.println("Enter player's name: ");
String player = input.nextLine();
ArrayList<Integer> numberOrder = QuestionOrder();
for (int k = 0; k < 10; k++) {
int number = numberOrder.get(k);
System.out.println(player + ": Pick a category: ");
System.out.println("hypebeast");
System.out.println("memes");
System.out.println("media");
System.out.println("science");
String category = input.nextLine().trim();
category = category.toLowerCase();
boolean correctness = false;
if (category.equals("hypebeast")) {
correctness = Lauren(number);
} else if (category.equals("memes")) {
correctness = Claire(number);
} else if (category.equals("media")) {
correctness = Meagan(number);
} else if (category.equals("science")) {
correctness = Lenice(number);
} else {
System.out.println("Try again, hoe!");
}
if (correctness) {
playerScore += 1;
}
System.out.println(player + "'s score: " + playerScore);
}
}
public static void twoPlayers() {
Scanner input = new Scanner(System.in);
int player1Score = 0;
int player2Score = 0;
System.out.println("Enter player 1's name: ");
String player1 = input.nextLine();
System.out.println("Enter player 2's name: ");
String player2 = input.nextLine();
ArrayList<Integer> numberOrder = QuestionOrder();
for (int k = 0; k < 10; k++) {
int number = numberOrder.get(k);
System.out.println(player1 + ": Pick a category: ");
System.out.println("hypebeast");
System.out.println("memes");
System.out.println("media");
System.out.println("science");
String category1 = input.nextLine().trim();
category1 = category1.toLowerCase();
boolean correctness1 = false;
if (category1.equals("hypebeast")) {
correctness1 = Lauren(number);
}
else if (category1.equals("memes")) {
correctness1 = Claire(number);
}
else if (category1.equals("media")) {
correctness1 = Meagan(number);
}
else if (category1.equals("science")) {
correctness1 = Lenice(number);
}
else {
System.out.println("Try again, hoe!");
}
if (correctness1) {
player1Score += 1;
}
System.out.println(player1 + "'s score: " + player1Score);
System.out.println(player2 + ": Pick a category: ");
System.out.println("hypebeast");
System.out.println("memes");
System.out.println("media");
System.out.println("science");
String category2 = input.nextLine().trim();
category2 = category2.toLowerCase();
boolean correctness2 = false;
if (category2.equals("hypebeast")) {
correctness2 = Lauren(number);
}
else if (category2.equals("memes")) {
correctness2 = Claire(number);
}
else if (category2.equals("media")) {
correctness2 = Meagan(number);
}
else if (category2.equals("science")) {
correctness2 = Lenice(number);
}
else {
System.out.println("Try again, hoe!");
}
if (correctness2) {
player2Score += 1;
}
System.out.println(player2 + "'s score: " + player2Score);
}
}
public static boolean Lauren(int number) {
Scanner input = new Scanner(System.in);
if (number == 1) {
String question = "On Sneaker Shopping with Complex, who spent the most money and how much did they spend?";
String choice1 = "A: Juice Wrld - $42,032.28";
String choice2 = "B: Future - $38,971.85";
String choice3 = "C: Ozuna - $29,312.58";
String choice4 = "D: Neymar - 18.623.44";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 2) {
String question = "What was the retail price for a red Supreme chopstick set? (StockX)";
String choice1 = "A: $86";
String choice2 = "B: $74";
String choice3 = "C: $67";
String choice4 = "D: $58";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 3) {
String question = "How many different colorways are there for the Nike Air Max 97? (mens)";
String choice1 = "A: Less than 50";
String choice2 = "B: 50 to 99";
String choice3 = "C: 100 to 199";
String choice4 = "D: 200 or more";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 4) {
String question = "What’s the most expensive mens Jordan 1 and its price? (StockX)";
String choice1 = "A: Retro High Travis Scott - $29,000";
String choice2 = "B: OG Chicago (1985) - $28,000";
String choice3 = "C: Retro High Off-White - $24,000";
String choice4 = "D: Retro High Satin Banned - $16,000";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 5) {
String question = "How much does the Supreme brick resell for? (StockX)";
String choice1 = "A: $352";
String choice2 = "B: $239";
String choice3 = "C: $193";
String choice4 = "D: $156";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 6) {
String question = "How many different Supreme box logo sticker designs have been produced?";
String choice1 = "A: Less than 50";
String choice2 = "B: 50 to 100";
String choice3 = "C: 100 to 150";
String choice4 = "D: 150 or more";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 7) {
String question = "Who is the founder of Off-White?";
String choice1 = "A: Lev Tanju";
String choice2 = "B: Virgil Abloh";
String choice3 = "C: Ronnie Fieg";
String choice4 = "D: Bill Bowerman";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 8) {
String question = "What’s the resale value for a pair of Nike Air Mags?";
String choice1 = "A: $62,740";
String choice2 = "B: $56,180";
String choice3 = "C: $49,950";
String choice4 = "D: $42,280";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 9) {
String question = "What is f.o.g.?";
String choice1 = "A: A visible aerosol consisting of tiny water droplets or ice crystals suspended in the " + "\n" + "air near the earths surface";
String choice2 = "B: An environmental agency that has also become known for their T-shirts";
String choice3 = "C: A religious group, named “Fear of God” that’s focused on spreading his word to the " + "\n" + "youth via fear tactics";
String choice4 = "D: A clothing brand named “Fear of God” that really has nothing to do with religion";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 0) {
String question = "What brand has Off-White not collaborated with?";
String choice1 = "A: Nike";
String choice2 = "B: Timberland";
String choice3 = "C: Supreme";
String choice4 = "D: Ikea";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
String answer = input.nextLine();
answer = answer.toUpperCase();
if (LaurenAnswer(number, answer)) {
return true;
}
else {
return false;
}
}
public static boolean Claire(int number) {
Scanner input = new Scanner(System.in);
if (number == 1) {
String question = "What day was the Area 51 raid?";
String choice1 = "A: September 20, 2019";
String choice2 = "B: September 15, 2019";
String choice3 = "C: September 18, 2019";
String choice4 = "D: September 25, 2019";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 2) {
String question = "What day is it my dudes?";
String choice1 = "A: Monday";
String choice2 = "B: Tuesday";
String choice3 = "C: Wednesday";
String choice4 = "D: Thursday";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 3) {
String question = "What is the name of the Gorilla that died May 28, 2016?";
String choice1 = "A: Harambe";
String choice2 = "B: Harold";
String choice3 = "C: Harry";
String choice4 = "D: Harrison";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 4) {
String question = "What does dat boi ride?";
String choice1 = "A: Bicycle";
String choice2 = "B: Tricycle";
String choice3 = "C: Moped";
String choice4 = "D: Unicycle";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 5) {
String question = "...and they were ________";
String choice1 = "A: Sisters";
String choice2 = "B: Roommates";
String choice3 = "C: Siblings";
String choice4 = "D: Married";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 6) {
String question = "Damn Daniel back at it again with the _________";
String choice1 = "A: Red Pumas";
String choice2 = "B: White Vans";
String choice3 = "C: Black Nikes";
String choice4 = "D: Blue Converse";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 7) {
String question = "Who is making the fist?";
String choice1 = "A: Arthur";
String choice2 = "B: Bart Simpson";
String choice3 = "C: Steven Universe";
String choice4 = "D: Timmy Turne";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 8) {
String question = "Is this a ______?";
String choice1 = "A: Pidgeon";
String choice2 = "B: Duck";
String choice3 = "C: Butterfly";
String choice4 = "D: Robin";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 9) {
String question = "What emotion is this cat?";
String choice1 = "A: Angry";
String choice2 = "B: Mad";
String choice3 = "C: Sad";
String choice4 = "D: Grumpy";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 0) {
String question = "Hurricane Katrina? More like Hurricane ________";
String choice1 = "A: Harambe";
String choice2 = "B: Tortilla";
String choice3 = "C: Hurricane";
String choice4 = "D: Chicken";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
String answer = input.nextLine();
answer = answer.toUpperCase();
if (ClaireAnswer(number, answer)) {
return true;
}
else {
return false;
}
}
public static boolean Meagan(int number) {
Scanner input = new Scanner(System.in);
if (number == 1) {
String question = "What is the name of the movie that Michael Scott makes in The Office?Wo is the founder of Off-White?";
String choice1 = "A: Threat Level Midnight";
String choice2 = "B: The Office: An American Workplace";
String choice3 = "C: Battlestar Galactica";
String choice4 = "D: The Dundies";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 2) {
String question = "What was the name of Friends before it was called Friends?";
String choice1 = "A: Central Perk";
String choice2 = "B: Six of One";
String choice3 = "C: The One";
String choice4 = "D: None of the above, Friends was the only name for the show";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 3) {
String question = "What kind of dog is Brian from Family Guy?";
String choice1 = "A: Beagle";
String choice2 = "B: Mutt";
String choice3 = "C: Bulldog";
String choice4 = "D: Labrador";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 4) {
String question = "What is Rick’s “universe number” from Rick and Morty?";
String choice1 = "A: C-133";
String choice2 = "B: C-137";
String choice3 = "C: C-139";
String choice4 = "D: C-142";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 5) {
String question = "In the season Freak Show of American Horror Story, what is the name of the killer clown??";
String choice1 = "A: Pogo";
String choice2 = "B: Rusty";
String choice3 = "C: Twisty";
String choice4 = "D: Bozo";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 6) {
String question = "According to the episode, ‘Mrs. Puff, You’re Fired’, how many times has Spongebob failed the boating exam?";
String choice1 = "A: 25";
String choice2 = "B: 69";
String choice3 = "C: 420";
String choice4 = "D: 1,258,056";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 7) {
String question = "WWhat is Leslie Knope’s favorite food in Parks and Recreation?";
String choice1 = "A: Waffles";
String choice2 = "B: Pancakes";
String choice3 = "C: French toast";
String choice4 = "D: Eggs";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 8) {
String question = "Which of the following is the first Pokemon that Ash catches?";
String choice1 = "A: Pidgie";
String choice2 = "B: Squirtle";
String choice3 = "C: Pikachu";
String choice4 = "D: Caterpie";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 9) {
String question = "How does Joyce communicate with her missing son, Will, in season one of Stranger Things?";
String choice1 = "A: Christmas lights";
String choice2 = "B: Oujia board";
String choice3 = "C: Her phone";
String choice4 = "D: A tree";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 0) {
String question = "Who is Andrew’s hormone monster in Big Mouth?";
String choice1 = "A: Rick";
String choice2 = "B: Morty";
String choice3 = "C: Maurice";
String choice4 = "D: Steve";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
String answer = input.nextLine();
answer = answer.toUpperCase();
if (MeaganAnswer(number, answer)) {
return true;
}
else {
return false;
}
}
public static boolean Lenice(int number) {
Scanner input = new Scanner(System.in);
if (number == 1) {
String question = "What is a tomato categorized as?";
String choice1 = "A: Both";
String choice2 = "B: Fruit";
String choice3 = "C: Neither";
String choice4 = "D: Vegetable";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 2) {
String question = "What is the longest type of cell in the human body?";
String choice1 = "A: Skin Cells";
String choice2 = "B: Blood Cells";
String choice3 = "C: Muscle Cells";
String choice4 = "D: Nerve Cells";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 3) {
String question = "What is the age of the earth?";
String choice1 = "A: about 4.5 trillion years";
String choice2 = "B: about 5.4 trillion years";
String choice3 = "C: about 4.5 billion years";
String choice4 = "D: about 5.4 billion years";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 4) {
String question = "What is the fastest rotating planet?";
String choice1 = "A: Mercury";
String choice2 = "B: Venus";
String choice3 = "C: Saturn";
String choice4 = "D: Jupiter";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 5) {
String question = "How many bones are in the adult human body?";
String choice1 = "A: 198";
String choice2 = "B: 206";
String choice3 = "C: 243";
String choice4 = "D: 300";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 6) {
String question = "How many bones are in the infant human body?";
String choice1 = "A: 198";
String choice2 = "B: 206";
String choice3 = "C: 243";
String choice4 = "D: 300";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 7) {
String question = "Which element can burn on the surface of water?";
String choice1 = "A: Mercury";
String choice2 = "B: Potassium";
String choice3 = "C: Helium";
String choice4 = "D: Krypton";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 8) {
String question = "What is the world's largest ocean?";
String choice1 = "A: Atlantic";
String choice2 = "B: Pacific";
String choice3 = "C: Indian";
String choice4 = "D: Arctic";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 9) {
String question = "What is the largest to have ever live?";
String choice1 = "A: Whale Shark";
String choice2 = "B: Hammerhead";
String choice3 = "C: Great White";
String choice4 = "D: Megalodan";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
if (number == 0) {
String question = "If you mix all the colors in the light spectrum together, what color do you get?";
String choice1 = "A: None of the above";
String choice2 = "B: Rainbow";
String choice3 = "C: White";
String choice4 = "D: Black";
String questionSection = question + "\n" + choice1 + "\n" + choice2 + "\n" + choice3 + "\n" + choice4;
System.out.println(questionSection);
}
String answer = input.nextLine();
answer = answer.toUpperCase();
if (LeniceAnswer(number, answer)) {
return true;
}
else {
return false;
}
}
public static boolean LaurenAnswer(int number, String answer) {
if (number == 1 && answer.equals("A")) {
return true;
}
if (number == 2 && answer.equals("D")) {
return true;
}
if (number == 3 && answer.equals("D")) {
return true;
}
if (number == 4 && answer.equals("B")) {
return true;
}
if (number == 5 && answer.equals("C")) {
return true;
}
if (number == 6 && answer.equals("D")) {
return true;
}
if (number == 7 && answer.equals("B")) {
return true;
}
if (number == 8 && answer.equals("B")) {
return true;
}
if (number == 9 && answer.equals("D")) {
return true;
}
if (number == 0 && answer.equals("C")) {
return true;
}
else {
return false;
}
}
public static boolean ClaireAnswer(int number, String answer) {
if (number == 1 && answer.equals("A")) {
return true;
}
if (number == 2 && answer.equals("C")) {
return true;
}
if (number == 3 && answer.equals("A")) {
return true;
}
if (number == 4 && answer.equals("D")) {
return true;
}
if (number == 5 && answer.equals("B")) {
return true;
}
if (number == 6 && answer.equals("B")) {
return true;
}
if (number == 7 && answer.equals("A")) {
return true;
}
if (number == 8 && answer.equals("B")) {
return true;
}
if (number == 9 && answer.equals("D")) {
return true;
}
if (number == 0 && answer.equals("B")) {
return true;
}
else {
return false;
}
}
public static boolean MeaganAnswer(int number, String answer) {
if (number == 1 && answer.equals("A")) {
return true;
}
if (number == 2 && answer.equals("B")) {
return true;
}
if (number == 3 && answer.equals("D")) {
return true;
}
if (number == 4 && answer.equals("B")) {
return true;
}
if (number == 5 && answer.equals("C")) {
return true;
}
if (number == 6 && answer.equals("D")) {
return true;
}
if (number == 7 && answer.equals("A")) {
return true;
}
if (number == 8 && answer.equals("D")) {
return true;
}
if (number == 9 && answer.equals("A")) {
return true;
}
if (number == 0 && answer.equals("C")) {
return true;
}
else {
return false;
}
}
public static boolean LeniceAnswer(int number, String answer) {
if (number == 1 && answer.equals("B")) {
return true;
}
if (number == 2 && answer.equals("D")) {
return true;
}
if (number == 3 && answer.equals("C")) {
return true;
}
if (number == 4 && answer.equals("D")) {
return true;
}
if (number == 5 && answer.equals("B")) {
return true;
}
if (number == 6 && answer.equals("D")) {
return true;
}
if (number == 7 && answer.equals("B")) {
return true;
}
if (number == 8 && answer.equals("B")) {
return true;
}
if (number == 9 && answer.equals("D")) {
return true;
}
if (number == 0 && answer.equals("C")) {
return true;
}
else {
return false;
}
}
public static ArrayList<Integer> QuestionOrder() {
ArrayList<Integer> questions = new ArrayList<Integer>();
//int number = (int) (Math.random() * 10);
for (int i = 0; i < 10; i++) {
questions.add(i);
}
Collections.shuffle(questions);
int number;
for (int i = 0; i < 10; i++) {
number = questions.get(i);
}
return questions;
}
}