-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDesert.java
More file actions
44 lines (32 loc) · 1.42 KB
/
Copy pathDesert.java
File metadata and controls
44 lines (32 loc) · 1.42 KB
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
import java.util.ArrayList;
public class Desert extends Environment {
/*This details the characteristics of
* the Sahara desert, which is a
* Hot and Dry desert
*/
private static final String environmentName = "Desert";
private static final double avgTemp = 18.75; //in degree Celsius
private static final double rainfall = 101.6; //in millimeters
private final ArrayList<Question> questionBank;
public Desert() {
super(environmentName, avgTemp, rainfall);
questionBank = new ArrayList<>();
loadQuestions("DesertQuestions.csv");
questionBank.add(q0);
questionBank.add(q1);
questionBank.add(q2);
questionBank.add(q3);
}
public Question getQuestion(int index) {
return questionBank.get(index);
}
//Questions Backup
final Question q0 = new Question("Which of these is essential for desert restoration",
"Trains", "Cars", "Camels", "C", "A");
final Question q1 = new Question("Which of these is essential for desert restoration",
"Trains", "Cars", "Camels", "C", "A");
final Question q2 = new Question("Which of these is essential for desert restoration",
"Trains", "Cars", "Camels", "C", "A");
final Question q3 = new Question("Which of these is essential for desert restoration",
"Trains", "Cars", "Camels", "C", "A");
}