Esempio n. 1
0
        static void Main(string[] args)
        {
            // Store Student Info
            StudentDatabase db = new StudentDatabase(32);
            db.AddStudent(1, "Saran", "Raj", 34, 65, 76, 67, 98, "Salem");
            db.AddStudent(2, "Rajathi", "Raja", 2, 9, 8, 0, 3, "Erode");
            db.AddStudent(3, "Balan", "murugan", 9, 5, 3, 23, 65, "Karur");
            db.AddStudent(4, "Mani", "Kandan", 63, 48, 31, 59, 78, "Osur");
            db.AddStudent(5, "Balan", "murugan", 23, 40, 93, 15, 19, "Karur");
            db.AddStudent(6, "Mani", "Kandan", 67, 80, 73, 89, 42, "Osur");
            db.AddStudent(7, "Saran", "Raj", 72, 54, 99, 67, 83, "Salem");
            db.AddStudent(8, "Rajathi", "Raja", 12, 89, 78, 65, 40, "Erode");

            // Retrive Student Info
            //db.PrintAllStudentInfo();
            //db.MaximumOfMark();
            //db.MinimumOFMark();
            //db.AverageStudentOfMark();
            //db.StudentOfResult();
            //db.PrintStudentNameById();
            db.PrintStudentNameByDistrict();
            //db.PrintGradeForEachSubject();
            //db.PrintStudentInfoByMark();
            //db.PrintTopStudentInfo();
            //db.PrintAllDistrictNames();
            //db.TotalCountStudent();

            //db.FindOutHighestMarkOfEachDistrict();//Not done
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            StudentDatabase db = new StudentDatabase(5);
            db.AddStudent("1", "Noah", 90, 92, 90);
            db.AddStudent("2", "Saran", 90, 90, 90);
            db.PrintInfo("7");

            //Find all students matching Mark1
            //Find all students matching total mark
            //Print each students max mark
            //Print each students min mark
            //Student with highest total, First rank student

            string m1 = "59";
            string m2 = "-99";

            int integerM1 = Convert.ToInt32(m1);
            int integerM2 = Convert.ToInt32(m2);

            //if(m1 > m2) Error

            if (integerM1 > integerM2)
            {

            }
        }