Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paysafe Interns Valentin-Martin
Student Managment
david-krastev-student-management-2023
Commits
096a8389
Commit
096a8389
authored
1 year ago
by
David Krastev
Browse files
Options
Download
Email Patches
Plain Diff
commit
parent
8c12d499
main
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
student-managment-app/data-model/src/main/java/student/managment/app/entities/Course.java
+1
-0
.../src/main/java/student/managment/app/entities/Course.java
student-managment-app/data-model/src/main/java/student/managment/app/entities/Student.java
+3
-0
...src/main/java/student/managment/app/entities/Student.java
with
4 additions
and
0 deletions
+4
-0
student-managment-app/data-model/src/main/java/student/managment/app/entities/Course.java
+
1
-
0
View file @
096a8389
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
student-managment-app/data-model/src/main/java/student/managment/app/entities/Student.java
+
3
-
0
View file @
096a8389
...
...
@@ -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
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help