static void Main() { List <Student> students = new List <Student> { new Student("Mihail Todorov", 20, "Male", 123123), new Student("Djordjano Ivanov", 25, "Male", 1010) }; List <Teacher> teachers = new List <Teacher> { new Teacher("Bistra Basheva", 70, "Female", new List <Discipline> { new Discipline("Electronics", 14, 0), new Discipline("Electronics - Practice", 0, 14) }), new Teacher("Daniel Alexandrov", 35, "Male", new List <Discipline> { new Discipline("History", 100, 0) }) }; List <SchoolClass> schoolclasses = new List <SchoolClass> { new SchoolClass("10B", students, teachers) }; School school = new School("ELSYS", schoolclasses); Console.WriteLine(school.ToString()); }
static void Main() { List <Class> schoolClasses = FillSchool(); School someSchool = new School(schoolClasses.ToArray()); someSchool.AddClass(new Class(GetStudents(), "some class", new Teacher("Chicho Chocho", new Discipline("P.E.", 2, 4)))); someSchool.Classes[1].AddComment("The best class."); string schoolInfo = someSchool.ToString();// Not a nice way to do it, but it fits the exercise; Console.WriteLine("School information:\n" + schoolInfo); someSchool.Classes[0].DeleteComment(); Console.WriteLine("School info after deleting the comments about the class with classID Mathematics:"); Console.WriteLine(someSchool.ToString()); }
public static void Main() { School school = new School("NPMG"); Discipline mathematics = new Discipline("Matematics", 20, 50); Discipline geography = new Discipline("Geography", 15, 20); Discipline biology = new Discipline("Biology", 20, 30); Teacher firstTeacher = new Teacher("Petar Nedevski", new List <Discipline> { mathematics }); Teacher secodTeacher = new Teacher("Dimo Padalski", new List <Discipline> { geography }); Teacher thirdTeacher = new Teacher("Tatqna Bobeva", new List <Discipline> { biology }); Student firstStudent = new Student("Georgi Kolev", "7", "This is the best school!"); Student secondStudent = new Student("Elena Dragusheva", "11"); Student thirdStudent = new Student("Valeriq Dimova", "6", "My class is perfect!"); Class schoolClass = new Class("Class Z", new List <Student> { firstStudent, secondStudent, thirdStudent }, new List <Teacher> { firstTeacher, secodTeacher, thirdTeacher }); school.AddClass(schoolClass); Console.Write(school.ToString()); }
static void Main() { List<Student> students = new List<Student> { new Student("Mihail Todorov", 20, "Male", 123123), new Student("Djordjano Ivanov", 25, "Male", 1010) }; List<Teacher> teachers = new List<Teacher> { new Teacher("Bistra Basheva", 70, "Female", new List<Discipline> { new Discipline("Electronics", 14, 0), new Discipline("Electronics - Practice", 0, 14)}), new Teacher("Daniel Alexandrov", 35, "Male", new List<Discipline> { new Discipline("History", 100, 0) }) }; List<SchoolClass> schoolclasses = new List<SchoolClass> { new SchoolClass("10B", students, teachers) }; School school = new School("ELSYS", schoolclasses); Console.WriteLine(school.ToString()); }