static void Main(string[] args) { University university = new University("NULP"); university.AddStudent(new Student("Andrew Kostenko", knowledge: 85)); university.AddStudent(new Student("Julia Veselkina", knowledge: 72)); university.AddStudent(new Student("Maria Perechrest", knowledge: 61)); university.AddStudent(new Student("Ivan Momot", knowledge: 27)); university.AddStudent(new Student("Nastya Shelm", knowledge: 66)); Internship internship = new Internship("Interlink"); internship.AddInternLinst(SelectionInterns.ChoiceInterns(university)); Console.WriteLine("+------------------------------+"); Console.WriteLine("|LIST OF INTERNSHIP'S STUDENTS:|"); Console.WriteLine("+------------------------------+"); foreach (var student in internship.GetInterns()) { Console.WriteLine("| - {0,-20} {1,3} |", student.name, student.knowledge.level); } Console.WriteLine("+------------------------------+"); Console.ReadKey(); }
static void Main(string[] args) { var s = new Student("Alex", new Knowledge(3)); University university = new University("CH.N.U."); university.AddStudent(new Student("Andrew Kostenko", new Knowledge(100))); university.AddStudent(new Student("Julia Veselkina", new Knowledge(75))); university.AddStudent(new Student("Maria Perechrest", new Knowledge(92))); university.AddStudent(new Student("Kate Ogirenko", new Knowledge(65))); Internship internship = new Internship("Interlink", university.GetStudents(), university.GetEverage()); Console.WriteLine($"List of internship's students from {university.GetName()} university"); internship.GetInterns(); }
static void Main(string[] args) { var student1 = new Student("Bob", new Knowledge(1)); var student2 = new Student("Martin", new Knowledge(5)); var student3 = new Student("Alex", new Knowledge(4)); University university = new University("CH.U.I."); university.AddStudent(student1); university.AddStudent(student2); university.AddStudent(student3); Internship internship = new Internship("Interlink"); internship.AddInterns(university); Console.WriteLine("List of internship's students:"); Console.WriteLine(internship.GetInterns()); }