Example #1
0
        static void Main(string[] args)
        {
            GradeTracker book = CreateGradeBook();

            book.AddGrades(new List <double>()
            {
                91, 90, 87.5
            });

            book.WriteGrades();

            GradeStatistics stats = book.ComputeStats();

            WriteResult("Average", stats.AverageGrade);
        }
Example #2
0
 private static void AddGrades(GradeTracker book)
 {
     book.AddGrades(91);
     book.AddGrades(89.5f);
     book.AddGrades(75);
 }