-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRateQuestions.java
48 lines (39 loc) · 1.42 KB
/
RateQuestions.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
package RateMyClass;
import java.util.Scanner;
public class RateQuestions {
public static Scanner in = new Scanner(System.in);
public static String courseQuestion = "Which Course area do you want? Math, Sciece, English, Social Studies, Art, or P.E.?";
public static String questionOne = "On a scale of 1-10, how hard was/is the course overall?";
public static String questionTwo = "On average, how much homework did/do you have for this course?";
public static String questionThree = "On a scale of 1-10, how engaged did/do you feel in this course?";
public static String questionFour = "On a scale of 1-10, how much did you enjoy the class?";
public static String questionFive = "Would you recommend this course to someone else?";
public static int courseNumber;
public static String course;
public static String question() {
return questionOne;
}
public static int courseSelection() {
course = in.nextLine();
course = course.toLowerCase();
if (course.equals("math")) {
courseNumber = 0;
}
else if (course.equals("science")) {
courseNumber = 1;
}
else if (course.equals("english")) {
courseNumber = 2;
}
else if (course.equals("social studies")) {
courseNumber = 3;
}
else if (course.equals("art")) {
courseNumber = 4;
}
else if (course.equals("pe")) {
courseNumber = 5;
}
return courseNumber;
}
}