public StudentCollection GetStudentsByName(string name)
        {
            StudentCollection result = new StudentCollection();

            for (int i = 0; i <= currentIndex; ++i)
            {
                if (students[i].Name.CompareTo(name) == 0)
                {
                    result.Add(students[i]);
                }
            }

            return(result);
        }
        public StudentCollection GetStudentsByUniversity(string university)
        {
            StudentCollection result = new StudentCollection();

            for (int i = 0; i <= currentIndex; ++i)
            {
                if (students[i].University.CompareTo(university) == 0)
                {
                    result.Add(students[i]);
                }
            }

            return(result);
        }
        public StudentCollection GetStudentsByAssessment(int assessment)
        {
            assessment = assessment > 100 ? 100 : assessment <= 0 ? 1 : assessment;

            StudentCollection result = new StudentCollection();

            for (int i = 0; i <= currentIndex; ++i)
            {
                if (students[i].Assessment.CompareTo(assessment) == 0)
                {
                    result.Add(students[i]);
                }
            }

            return(result);
        }