Example #1
0
        void Add(string strFirstName, string strLastName, string strAddress, double dblGrade)
        {
            clsStudent objStudent = new clsStudent();

            objStudent.FirstName = strFirstName;
            objStudent.LastName  = strLastName;
            objStudent.Address   = strAddress;
            objStudent.Grade     = dblGrade;
            List.Add(objStudent);
        }
Example #2
0
        public void EvaluateStudentsByGPA(double minGPA, double maxGPA)
        {
            clsStudent student = null;

            for (int i = List.Count - 1; i >= 0; --i)
            {
                student = (clsStudent)List[i];
                if (student.Grade < minGPA)
                {
                    List.Remove(student);
                    continue;
                }

                if (student.Grade > maxGPA)
                {
                    List.Remove(student);
                    continue;
                }
            }
        }
Example #3
0
 public void Add(clsStudent s)
 {
     List.Add(s);
 }