public void PrintGradeDistribution() { int grade = 5; while (grade >= 0) { int stars = register.NumberOfGrades(grade); Console.Write(grade + ": "); PrintStars(stars); Console.WriteLine(); grade = grade - 1; } }
public void PrintGradeDistribution() { int grade = 5; while (grade >= 0) { int stars = register.NumberOfGrades(grade); Console.Write(grade + ": "); PrintStars(stars); Console.WriteLine(); grade = grade - 1; } Console.WriteLine("The average of grades: " + register.AverageOfPoints()); Console.WriteLine("The average of points: " + register.AverageOfGrades()); }