@ -142,4 +142,9 @@ public class Student {
return totalCredits > 0 ? totalWeightedGrades / totalCredits : 0.0;
}
public boolean hasPassed() {
double averageGrade = calculateAverageGrade();
return averageGrade >= 10;