static void Main(string[] args) { University CHNU = new University("The Bohdan Khmelnytsky National University of Cherkasy"); CHNU.AddStudent(new Student("Serhii Yatsyn", 100)); CHNU.AddStudent(new Student("Stas Lotskin", 89)); CHNU.AddStudent(new Student("Euhen Korzh", 38)); CHNU.AddStudent(new Student("Vlad Kravchenko", 43)); CHNU.AddStudent(new Student("Alina Kosholap", 58)); CHNU.AddStudent(new Student("Irina Mogila", 66)); CHNU.AddStudent(new Student("Andrey Kharitonov", 1)); CHNU.AddStudent(new Student("Anna Suscheva", 25)); CHNU.AddStudent(new Student("Diana Ratsyna", 95)); CHNU.AddStudent(new Student("Sasha Kotov", 99)); CHNU.ShowAllStudents(); Console.WriteLine("\n" + CHNU.Name + " average score is " + CHNU.getAverageScore()); InternshipInCamp InCamp = new InternshipInCamp("Interlink"); InCamp.StudentsValidation(CHNU); InCamp.GetStudents(); Console.ReadLine(); }
static void Main(string[] args) { // Create new University University CHNU = new University("The Bohdan Khmelnytsky National University of Cherkasy"); // Add students to University CHNU.AddStudent(new Student("Nikita Ivanov", 100)); CHNU.AddStudent(new Student("Alina Tsymbal", 95)); CHNU.AddStudent(new Student("Volodymyr Khandiuk", 85)); CHNU.AddStudent(new Student("Stepan Karpov", 73)); CHNU.AddStudent(new Student("Julia Veselkina", 58)); CHNU.AddStudent(new Student("Stas Voidenko", 41)); CHNU.AddStudent(new Student("Maria Perechrest", 25)); CHNU.AddStudent(new Student("Serhii Yatsyn", 1)); // Display the list of students CHNU.ShowAllStudents(); // Display University average score Console.WriteLine("\nCHNU average score is {0}", CHNU.AverageScore()); // Create new Intership InternshipInCamp InCamp = new InternshipInCamp("Interlink"); // Check all students InCamp.StudentValidation(CHNU); // Display suitable students InCamp.GetStudents(); }