-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathApp.java
70 lines (54 loc) · 3.12 KB
/
App.java
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
import java.util.Scanner;
public class App {
public static void main(String[] args) throws Exception {
boolean retry;
System.out.println("Welcome to the social credit score test");
System.out.println("there will be 10 questions, are you ready?");
do {
Scanner questions = new Scanner(System.in);
String[] inputs = new String[10];
System.out.println("Question 1: True or False, Taiwan a country?");
inputs[0] = questions.nextLine();
System.out.println(inputs[0]);
System.out.println("Question 2:What happened at tiananmen square?");
System.out.println("options are : 1)Nothing 2)Protesting 3)tank man ");
System.out.println("Please type 1, 2 or 3");
inputs[1] = questions.nextLine();
System.out.println("Question 3: Who is our leader?");
System.out.println("options are : 1)Daniel zhou 2)Donald Trump 3)Xi Jinping");
System.out.println("Please type 1, 2 or 3");
inputs[2] = questions.nextLine();
System.out.println("Question 4:is capitalism good?");
System.out.println("options are : 1)Yes 2)No");
System.out.println("Please type 1 or 2");
inputs[3] = questions.nextLine();
System.out.println("Question 5: U.S.A or CHINA?");
System.out.println("Options are : 1)U.S.A 2)CHINA");
System.out.println("Please type 1 or 2");
inputs[4] = questions.nextLine();
System.out.println("Question 6: what is the best number of kids to have?");
System.out.println("Options are : 1)1 2)4 3)69 4)420");
System.out.println("Please type 1, 2, 3 or 4");
inputs[5] = questions.nextLine();
System.out.println("Question 7:Is china a capitalist or communist? ");
System.out.println("option are : 1)capitalist 2)communist");
System.out.println("Please type 1 or 2");
inputs[6] = questions.nextLine();
System.out.println("Question 8 :Who is tank man?");
System.out.println("options are : 1)what are you talking about? 2)idk 3)wut 4)a protester");
System.out.println("Please type 1, 2, 3 or 4");
inputs[7] = questions.nextLine();
System.out.println("Question 9: What is better than china?");
System.out.println("options are : 1)nothing 2)women 3)money 4)Jeff Bezos");
System.out.println("Please type 1, 2, 3 or 4");
inputs[8] = questions.nextLine();
System.out.println("Question 10: Who is numba won enemy?");
System.out.println("1)simps 2)youtube ads 3)Donald Trump 4)Johnny Depp");
System.out.println("Please type 1, 2, 3 or 4");
inputs[9] = questions.nextLine();
System.out.println("You scored: " + AnswerChecker.CheckAnswer(inputs) + "/10");
System.out.println("Try Again? (Type 'Yes' to try again)");
retry = questions.nextLine().equals("Yes") ? true : false;
} while (retry);
}
}