public static void OutputITList() { Student[] listKQ = new Student[numOfStudent]; listKQ = studentList.Where(p => p.Faculty == "cntt" || p.Faculty == "CNTT").ToArray(); if (listKQ.Count() > 0) { Console.WriteLine("Danh sach sinh vien CNTT: "); OutputList(listKQ); } else { Console.WriteLine("Khong co sinh vien CNTT."); } }
public static void MaxITList() { float Max = studentList.Max(p => (p as Student).Mark); Student[] listKQ = new Student[numOfStudent]; listKQ = studentList.Where(p => p.Mark == Max && p.Faculty == "cntt" || p.Faculty == "CNTT").ToArray(); if (listKQ.Count() > 0) { Console.WriteLine("Danh sach sinh vien Mark Max va Khoa CNTT: "); OutputList(listKQ); } else { Console.WriteLine("Khong co sinh vien Mark Max va Khoa CNTT."); } }
public static void Search() { string ten; Console.Write("Nhap FullName ban muon Tim: "); ten = Console.ReadLine(); Student[] listKQ = new Student[numOfStudent]; listKQ = studentList.Where(p => p.FullName == ten).ToArray(); if (listKQ.Count() > 0) { Console.WriteLine("Thong tin ban muon tim: "); OutputList(listKQ); } else { Console.WriteLine("Khong co Thong tin ban muon tim."); } }