Professional Documents
Culture Documents
32119001088
CODE:
i.Public void Method called FindBest that find the student with maximum marks(Mid+Part+Final)
bestLevel = level;
bestStudent = s;
if (bestStudent != null) {
System.out.println("The student with the highest level is: " + bestStudent.getName() + " with a level
of " + bestLevel);
} else {
}
j. Public void Method called FindAvg that find the average values for mid , final and Part.
double Participation_S = 0;
double Final_S = 0;
Mid_S += s.getMidtermScore();
Participation_S += s.getParticipationScore();
Final_S += s.getFinalScore();