Commit 096a8389 authored by David Krastev's avatar David Krastev
Browse files

commit

parent 8c12d499
No related merge requests found
Showing with 4 additions and 0 deletions
+4 -0
......@@ -45,6 +45,7 @@ public class Course {
return students;
}
public double getAverageGrade() {
//stream is not really precise or is really precise .average();
return this.getStudents()
.values()
.stream()
......
......@@ -48,6 +48,8 @@ public class Student {
}
public double getTotalAverageGrade() {
//stream is not really precise or is really precise .average();
//if used with 5.21, 4.19 it converts average to 4.000132;
return
this.studentsGrades
.values().stream()
......@@ -58,6 +60,7 @@ public class Student {
}
public double getAverageGradeForCourse(Course course) {
//stream is not really precise or is really precise .average();
return
this.studentsGrades
.entrySet()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment