-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCode_Sample
More file actions
152 lines (135 loc) · 3.68 KB
/
Code_Sample
File metadata and controls
152 lines (135 loc) · 3.68 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
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
package model;
import java.util.Arrays;
public class Program {
//Fields
private String university;
private String category;
private String programName;
private String degree;
private double programRating;
private double tuition;
private String location;
private String admissionAverage;
private boolean hasFullTimeStatus;
/*
*Author: Ashwin
*Creates the overallScore variable to store the score of a program
*/
private int overallScore=0;
private Course[] courses = new Course[]{new Course("ENG4U"), new Course("MHF4U"),
new Course("MCV4U"), new Course("SCH4U"), new Course("SPH4U"), new Course("ICS4U")};
private String URL;
private boolean hasSupplementaryApplication;
private boolean hasCoOp;
//Added by Ashwin
//rating array for generating the score for each University program
private int ratings[]=new int[6];
//rating[0]=tuition
//rating[1]=Co-op
//rating[2]=supplementary app
//rating[3]=part time
//rating[4]=preferred field of study
//rating[5]=program rating
//getters and setters
public int getOverallScore() {
return overallScore;
}
public void setOverallScore(int overallScore) {
this.overallScore = overallScore;
}
public int[] getRatings() {
return ratings;
}
public void setRatings(int[] ratings) {
this.ratings = ratings;
}
public Program() {
}
public String getUniversity() {
return university;
}
public void setUniversity(String university) {
this.university = university;
}
public String getCategory() {
return category;
}
public void setCategory(String category) {
this.category = category;
}
public String getProgramName() {
return programName;
}
public void setProgramName(String programName) {
this.programName = programName;
}
public String getDegree() {
return degree;
}
public void setDegree(String degree) {
this.degree = degree;
}
public double getProgramRating() {
return programRating;
}
public void setProgramRating(double programRating) {
this.programRating = programRating;
}
public double getTuition() {
return tuition;
}
public void setTuition(double tuition) {
this.tuition = tuition;
}
public String getLocation() {
return location;
}
public void setLocation(String location) {
this.location = location;
}
public String getAdmissionAverage() {
return admissionAverage;
}
public void setAdmissionAverage(String admissionAverage) {
this.admissionAverage = admissionAverage;
}
public boolean isHasFullTimeStatus() {
return hasFullTimeStatus;
}
public void setHasFullTimeStatus(boolean hasFullTimeStatus) {
this.hasFullTimeStatus = hasFullTimeStatus;
}
public boolean isHasSupplementaryApplication() {
return hasSupplementaryApplication;
}
public void setHasSupplementaryApplication(boolean hasSupplementaryApplication) {
this.hasSupplementaryApplication = hasSupplementaryApplication;
}
public boolean isHasCoOp() {
return hasCoOp;
}
public void setHasCoOp(boolean hasCoOp) {
this.hasCoOp = hasCoOp;
}
public String getURL() {
return URL;
}
public void setURL(String uRL) {
URL = uRL;
}
public Course[] getCourses() {
return courses;
}
public void setCourses(Course[] courses) {
this.courses = courses;
}
//ToString method
@Override
public String toString() {
return "Program [university=" + university + ", category=" + category + ", programName=" + programName
+ ", degree=" + degree + ", programRating=" + programRating + ", tuition=" + tuition + ", location="
+ location + ", admissionAverage=" + admissionAverage + ", hasFullTimeStatus=" + hasFullTimeStatus
+ ", courses=" + Arrays.toString(courses) + ", URL=" + URL + ", hasSupplementaryApplication="
+ hasSupplementaryApplication + ", hasCoOp=" + hasCoOp + "]";
}
}