Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/main/java/usecase/GetAverageGradeUseCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ public float getAverageGrade(String course) {
// Call the API to get all the grades for the course for all your team members
// TODO Task 3a: Complete the logic of calculating the average course grade for
// your team members. Hint: the getGrades method might be useful.

for (String user: team.getMembers()){
Grade grade = gradeDataBase.getGrade(user, course);
sum += grade.getGrade();
count ++;
}
if (count == 0) {
return 0;
}
Expand Down