-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTundra.java
More file actions
40 lines (31 loc) · 1.37 KB
/
Copy pathTundra.java
File metadata and controls
40 lines (31 loc) · 1.37 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
import java.util.ArrayList;
public class Tundra extends Environment{
/* Referring to the Arctic Tundra
* located in the northern hemisphere
*/
private static final String environmentName = "Tundra";
private static final double avgTemp = (-13.25); //in degree Celsius
private static final double rainfall = 200; //in millimeters
private ArrayList<Question> questionBank;
public Tundra() {
super(environmentName, avgTemp, rainfall);
questionBank=new ArrayList<>();
loadQuestions("TundraQuestions.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");
}