Ejemplo n.º 1
0
        public void PrintGradeDistribution()
        {
            int grade = 5;

            while (grade >= 0)
            {
                int stars = register.NumberOfGrades(grade);
                Console.Write(grade + ": ");
                PrintStars(stars);
                Console.WriteLine();

                grade = grade - 1;
            }
        }
Ejemplo n.º 2
0
        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());
        }