static void Main() { // == Disciplines == Discipline math = new Discipline("Math", 23, 23); Discipline bio = new Discipline("Bio", 23, 34); Discipline geo = new Discipline("Geo", 27, 44); // == Teachers == Teacher Dimitar = new Teacher("Dimitar Lilov", 34, Gender.Male); Dimitar.AddDiscipline(math); Dimitar.AddDiscipline(bio); Teacher Kiril = new Teacher("Kiril Nikolov", 29, Gender.Male); Kiril.AddDiscipline(geo); // == Students == Student Aneliq = new Student("Aneliq Iordanova", 17, Gender.Female, 000354); Student Yoana = new Student("Yoana Ivanova", 18, Gender.Female, 000359); Yoana.AddComment("EGN - 2342623623"); // == List Of Teachers == List<Teacher> teachers = new List<Teacher>(); teachers.Add(Dimitar); teachers.Add(Kiril); // == List Of Students == List<Student> students = new List<Student>(); students.Add(Aneliq); students.Add(Yoana); // == StudentClass == StudentClass firstClass = new StudentClass("10B", students, teachers); // == School == School washington = new School("Washington"); washington.AddSchoolClass(firstClass); // == Printing == Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Printing School ..."); Console.ResetColor(); Console.WriteLine(); Console.WriteLine(washington); Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Printing Class ..."); Console.ResetColor(); Console.WriteLine(); Console.WriteLine(firstClass); Console.ReadLine(); }
static void Main() { //got inspired for the comments from one of your colleagues :) Discipline Chemistry = new Discipline("Chemistry", 20, 2, "Chemisty is sux!"); Discipline Mathematics = new Discipline("Mathematics", 30, 3, "Matematic is helpfull!"); Discipline Literature = new Discipline("Literature", 30, 3, "Literature is okay!"); Discipline English = new Discipline("English", 20, 2, "English is very important!"); Teacher Mendeleev = new Teacher("Pascal", "Mendeleev", "1 + 1 = h2o"); Teacher Dimcho = new Teacher("Dimcho", "Negramotniq", "Sometimes Win Sometimes Lun"); Teacher White = new Teacher("Walter", "White", "You Know The Business And I Know The Chemistry"); Mendeleev.AddDiscipline(Chemistry); Mendeleev.AddDiscipline(Mathematics); Dimcho.AddDiscipline(Literature); Dimcho.AddDiscipline(English); White.AddDiscipline(Chemistry); Student Ivancho = new Student("Ivancho", "Ivanov", 1, "The big boss"); Student Mariika = new Student("Mariika", "Ivanova", 2, "Ivancho's girlfriend"); Student Jesse = new Student("Jesse", "Pinkman", 3, "Yo Bitch!"); SchoolClass Overacheivers = new SchoolClass("1a", "Excellent"); SchoolClass Narcos = new SchoolClass("high level", "Haisenberg team"); Overacheivers.AddTeacher(Mendeleev); Overacheivers.AddTeacher(Dimcho); Overacheivers.AddStudent(Ivancho); Overacheivers.AddStudent(Mariika); Narcos.AddTeacher(White); Narcos.AddStudent(Jesse); School PriBatJoro = new School(); PriBatJoro.AddClass(Overacheivers); PriBatJoro.AddClass(Narcos); List <IComment> comments = new List <IComment>() { Mendeleev, Dimcho, White, Ivancho, Mariika, Jesse, Chemistry, Mathematics, Literature, English, Overacheivers, Narcos }; foreach (var obj in comments) { Console.WriteLine(obj.Comment); } }
static void Main() { IList <Student> students = new List <Student> { new Student("Георги Пешев", 1), new Student("Димитър Иванов", 2), new Student("Иван Цветанов", 5), new Student("Гергана Зафирова", 3), new Student("Стела Маринова", 4) }; var html = new Discipline("HTML", 6); html.AddStudent(students[0]); html.AddStudent(students[2]); html.AddStudent(students[4]); html.Ditails = "Вечерни курсове"; var css = new Discipline("CSS", 5); css.AddStudent(students[0]); css.AddStudent(students[1]); css.AddStudent(students[2]); var java = new Discipline("Java", 4); java.AddStudent(students[1]); java.AddStudent(students[3]); java.AddStudent(students[4]); var javaScript = new Discipline("JavaScript", 5, students); var webDevelopmentTeacher = new Teacher("Владимир Георгиев"); webDevelopmentTeacher.AddDiscipline(html); webDevelopmentTeacher.AddDiscipline(css); webDevelopmentTeacher.AddDiscipline(javaScript); var JavaDevelopmentTeacher = new Teacher("Тодор Куртев"); JavaDevelopmentTeacher.AddDiscipline(java); var classA = new Class("A", new List <Teacher> { webDevelopmentTeacher, JavaDevelopmentTeacher }); string str = classA.ToString(); Console.WriteLine(classA); }
static void Main() { School hogwards = new School(); Class blackMagic = new Class("Black Magic"); Teacher snape = new Teacher("Snape"); snape.Comments = "brrrrr"; Discipline blackStuffPractise = new Discipline("Black stuff and dark stuff", 1, 200); blackStuffPractise.Comments = "brr"; snape.AddDiscipline(blackStuffPractise); blackMagic.AddTeacher(snape); hogwards.AddClass(blackMagic); foreach (var clas in hogwards.Classes) { foreach (var teach in clas.Teachers) { foreach (var disc in teach.Disciplines) { Console.WriteLine(disc.Name); } } } }
static void Main() { School hogwards = new School(); Class blackMagic = new Class("Black Magic"); Teacher snape = new Teacher("Snape"); snape.Comments = "brrrrr"; Discipline blackStuffPractise = new Discipline("Black stuff and dark stuff",1,200); blackStuffPractise.Comments = "brr"; snape.AddDiscipline(blackStuffPractise); blackMagic.AddTeacher(snape); hogwards.AddClass(blackMagic); foreach (var clas in hogwards.Classes) { foreach (var teach in clas.Teachers) { foreach (var disc in teach.Disciplines) { Console.WriteLine(disc.Name); } } } }
static void Main() { // Just examples :) School school = new School("Proffesional Economy College"); Class firstClass = new Class("11 B"); Class secondClass = new Class("10 A"); Class thirdClass = new Class("12 D"); Teacher firstTeacher = new Teacher("Pesho"); Teacher secondTeacher = new Teacher("Gosho"); Student firstStudent = new Student("Maria", "13"); Student secondStudent = new Student("Penka", "2"); Student thirdStudent = new Student("Blagoi", "32"); Student forthStudent = new Student("Krasimir", "7"); Student fifthStudent = new Student("Ivan", "15"); Discipline math = new Discipline("Maths", 5, 10); Discipline history = new Discipline("History", 3, 6); Discipline geography = new Discipline("Geography", 3, 6); Discipline literature = new Discipline("Literature", 2, 4); school.AddClass(firstClass); school.AddClass(secondClass); school.AddClass(thirdClass); firstTeacher.AddDiscipline(math); firstTeacher.AddDiscipline(literature); secondTeacher.AddDiscipline(history); secondTeacher.AddDiscipline(geography); firstClass.AddStudentToAClass(firstStudent); firstClass.AddStudentToAClass(secondStudent); secondClass.AddStudentToAClass(thirdStudent); thirdClass.AddStudentToAClass(forthStudent); thirdClass.AddStudentToAClass(fifthStudent); firstClass.AddTeacherToAClass(firstTeacher); firstClass.AddTeacherToAClass(secondTeacher); secondClass.AddTeacherToAClass(firstTeacher); thirdClass.AddTeacherToAClass(secondTeacher); Console.WriteLine(school); }
private static void Main() { var firstDiscipline = new Discipline("Mathematic", 20, 3, "Some comment for math..."); var secondDiscipline = new Discipline("Physics", 22, 4); var firstTeacher = new Teacher("Georgi Gerogiev", "Some comment for the teacher..."); var secondTeacher = new Teacher("Ivan Ivanov"); firstTeacher.AddDiscipline(firstDiscipline); firstTeacher.AddDiscipline(secondDiscipline); secondTeacher.AddDiscipline(firstDiscipline); secondTeacher.AddDiscipline(secondDiscipline); var firstStudent = new Student("Pesho Peshov", 112, "Some comment about the student..."); var secondStudent = new Student("Gosho Goshov", 113); var exampleSchoolClass = new School("Some unique ID", "Some comment..."); exampleSchoolClass.AddStudent(firstStudent); exampleSchoolClass.AddStudent(secondStudent); exampleSchoolClass.AddTeacher(firstTeacher); exampleSchoolClass.AddTeacher(secondTeacher); }
static void Main() { IList<Student> students = new List<Student> { new Student("Георги Пешев", 1), new Student("Димитър Иванов", 2), new Student("Иван Цветанов", 5), new Student("Гергана Зафирова", 3), new Student("Стела Маринова", 4) }; var html = new Discipline("HTML", 6); html.AddStudent(students[0]); html.AddStudent(students[2]); html.AddStudent(students[4]); html.Ditails = "Вечерни курсове"; var css = new Discipline("CSS", 5); css.AddStudent(students[0]); css.AddStudent(students[1]); css.AddStudent(students[2]); var java = new Discipline("Java", 4); java.AddStudent(students[1]); java.AddStudent(students[3]); java.AddStudent(students[4]); var javaScript = new Discipline("JavaScript", 5,students); var webDevelopmentTeacher = new Teacher("Владимир Георгиев"); webDevelopmentTeacher.AddDiscipline(html); webDevelopmentTeacher.AddDiscipline(css); webDevelopmentTeacher.AddDiscipline(javaScript); var JavaDevelopmentTeacher = new Teacher("Тодор Куртев"); JavaDevelopmentTeacher.AddDiscipline(java); var classA = new Class("A", new List<Teacher> { webDevelopmentTeacher, JavaDevelopmentTeacher }); string str = classA.ToString(); Console.WriteLine(classA); }
static void Main() { School firstLanguageSchool = new School("First Language School"); Discipline math = new Discipline("Basic Mathematics", 15, 11, "Kofti predmet"); Discipline math2 = new Discipline("Mathematics 2-nd part", 14, 2); Console.WriteLine(math); Teacher first = new Teacher("Kolio", "Ivanov", "Idiot"); first.AddDiscipline(math); first.AddDiscipline(math2); Console.WriteLine(first); Student firstStudent = new Student("Liolio", "Peshev", "Very poor performance", "11b"); Console.WriteLine(firstStudent); SchoolClass eleven = new SchoolClass("Eleventh grade"); eleven.AddTeacher(first); }
public static void Main() { Person p = new Person("Tosho", "Boshev"); Console.WriteLine(p); Student s = new Student("Mitko", "Pitkov", 23); Console.WriteLine(s); Teacher t = new Teacher("Gosho", "Toshev"); t.AddDiscipline(new Discipline("Mathematics", 20, 15)); t.AddDiscipline(new Discipline("Geometry", 20, 25)); t.AddDiscipline(new Discipline("Trigonometry", 25, 20)); Console.WriteLine(t); Discipline d = new Discipline("Mathematics", 20, 15); Console.WriteLine(d); Class c = new Class("B"); Console.WriteLine(c); }
public static void CreateSchoolData() { // create classes Classs fiveB = new Classs("5B"); Classs nineA = new Classs("9A"); nineA.AddComments("some comments go here"); // create students Student s1 = new Student("Student 1", fiveB); Student s2 = new Student("Student 2", fiveB); Student s3 = new Student("Student 3", nineA); Student s4 = new Student("Student 4", nineA); Student s5 = new Student("Student 5", nineA); // create discipline Discipline english = new Discipline("English", 5, 20); Discipline math = new Discipline("Math", 6, 25); Discipline chemistry = new Discipline("Chemistry", 2, 10); // create teachers and assign disciplines, resp. classes Teacher teach1 = new Teacher("Teach1"); teach1.AddDiscipline(english); Teacher teach2 = new Teacher("Teach2"); teach2.AddDiscipline(math); teach2.AddDiscipline(chemistry); Teacher teach3 = new Teacher("Teach3"); teach3.AddDiscipline(english); teach3.AddDiscipline(math); fiveB.AddTeacher(teach1); fiveB.AddTeacher(teach2); nineA.AddTeacher(teach3); }
static void Main(string[] args) { Teacher teacher = new Teacher("Mincho"); teacher.AddDiscipline("matematika", 5, 5); teacher.AddDiscipline("geografiq", 5, 5); teacher.AddDiscipline("istoriq", 5, 5); Teacher teacherTwo = new Teacher("Stoimen"); teacherTwo.AddDiscipline("matematika", 5, 5); teacherTwo.AddDiscipline("geografiq", 5, 5); teacherTwo.AddDiscipline("istoriq", 5, 5); Class klas = new Class("1a"); klas.AddTeacher(teacher); klas.AddTeacher(teacherTwo); Student ucheniche = new Student("Genovev", klas); Console.WriteLine(ucheniche.ToString()); Schule school = new Schule(); school.AddClass(klas); Console.WriteLine(school.ToString()); }
static void Main(string[] args) { //clasa var cclass = new Class(Guid.NewGuid()); //profesori var gigiTeacher = new Teacher("Gigi"); var kentTeacher = new Teacher("Kent"); var hagiTeacher = new Teacher("Hagy"); //discipline var rom = new Discipline("Rom", 2, 4); var math = new Discipline("Math", 1, 5); var fiz = new Discipline("Fiz", 3, 19); //profesori cu discipline gigiTeacher.AddDiscipline(rom); kentTeacher.AddDiscipline(math); hagiTeacher.AddDiscipline(fiz); //studeni var ionescuStudent = new Student("Ionescu", cclass); var popescuStudent = new Student("Popescu", cclass); var giorgescuStudent = new Student("Giorgescu", cclass); var lupescuStudent = new Student("Lupescu", cclass); //studenti in clasa cclass.AddStudents(ionescuStudent); cclass.AddStudents(popescuStudent); cclass.AddStudents(giorgescuStudent); cclass.AddStudents(lupescuStudent); //profesori la clasa cclass.AddTeacher(gigiTeacher); cclass.AddTeacher(kentTeacher); cclass.AddTeacher(hagiTeacher); var schoolManager = new SchoolManager(); schoolManager.AddClass(cclass); schoolManager.PrintClasses(); }
static void Main() { Teacher firstTeacher = new Teacher("Doncho"); Teacher secondTeacher = new Teacher("Nakov"); Teacher thirdTeacher = new Teacher("Joro"); Teacher fourthTeacher = new Teacher("Misho"); firstTeacher.AddDiscipline("HTML", 6, 7); secondTeacher.AddDiscipline("CSharp", 6, 7); thirdTeacher.AddDiscipline("CSharp", 6, 7); fourthTeacher.AddDiscipline("HTML", 6, 7); List<Teacher> teachersTeam = new List<Teacher>() { firstTeacher, secondTeacher, thirdTeacher, fourthTeacher }; Class firstClass = new Class(teachersTeam, "First class"); Class secondClass = new Class(teachersTeam, "Second class"); School testSchool = new School(); testSchool.AddStudent("Ivo", 3423); testSchool.AddClass(firstClass); testSchool.AddClass(secondClass); Console.WriteLine("First student class number: {0}", testSchool.Students[0].ClassNumber); Console.WriteLine("First student name: {0}", testSchool.Students[0].Name); Console.WriteLine("Class Id: {0}", testSchool.Classes[0].TextId); Console.WriteLine("Second class, third teacher name: {0}", testSchool.Classes[1].Teachers[2].Name); testSchool.Students[0].Comment = "Cool"; Console.WriteLine("Comment for {0}: {1}", testSchool.Students[0].Name, testSchool.Students[0].Comment); }
static void Main() { //Instance of a school School mySchool = new School("125SOU"); //Instance of a new teacher Teacher teach01 = new Teacher("Antonova"); //Instance of a new discipline Discipline discipl01 = new Discipline(DisciplineName.Arts); //Add a discipline to teachers list - during this process you have to mark number of lectures and number of exercises teach01.AddDiscipline(discipl01); //instance of a new class Class myClass = new Class("first B"); //Add this class to schools list mySchool.AddAClassInTheSchool(myClass); //Instance of another class - with the same name(identifier) - to check if it unique Class anotherClass = new Class("first B"); //Add another class with the same identifier - the program will warn you and will ask to change this identifier mySchool.AddAClassInTheSchool(anotherClass); //Instance of a student Student stud01 = new Student("Petar"); //Add this student to first class myClass.AddAStudent(stud01); //The program will ask for classnumber and will check if it unique //Instance of another student Student stud02 = new Student("Vania"); myClass.AddAStudent(stud02); //Try to give this student the same class number as the first student //Add a teacher to a class myClass.AddATeacher(teach01); //Test adding comments mySchool.AddComment(); teach01.AddComment(); }
public static void Test() { Console.WriteLine("**********TASK1**********\n"); Discipline ComputerScience = new Discipline("Computer Science", 20, 2, "Code all day."); Discipline Physics = new Discipline("Physics", 10, 2, "Physics makes the world go round."); Discipline Mathematics = new Discipline("Mathematics", 30, 3, "2 + 2 = 4"); Discipline Literature = new Discipline("Literature", 30, 3, "To be or not to be."); Discipline English = new Discipline("English", 20, 2, "A is for apple, B is for bee."); Teacher ItTeacher = new Teacher("Doncho", "Donchev", "Hello World!"); Teacher NaturalScienceTeacher = new Teacher("Albert", "Einstein", "E=mc2"); Teacher LitTeacher = new Teacher("Will", "Shakespeare", "Shake your spear at Shakespeare"); NaturalScienceTeacher.AddDiscipline(Mathematics); NaturalScienceTeacher.AddDiscipline(Physics); ItTeacher.AddDiscipline(ComputerScience); LitTeacher.AddDiscipline(English); LitTeacher.AddDiscipline(Literature); Student Pesho = new Student("Petyr", "Nizamov", 1, "Momma's boy"); Student Mara = new Student("Mariika", "Ivanova", 2, "Pesho's girlfriend"); Student Ivan = new Student("Vanko", "Marinov", 3, "Teacher's pet"); Student Joanna = new Student("Joanna", "Petrova", 4, "Prom's queen"); Student Plamen = new Student("Plamen", "Petrov", 6, "Joanna's twin brother"); Student Joro = new Student("Joro", "Martinov", 10, "The school's bully"); SchoolClass FirstGrades = new SchoolClass("1a", "We are firstgraders."); SchoolClass Seniors = new SchoolClass("12a", "Final year of school."); FirstGrades.AddTeacher(NaturalScienceTeacher); FirstGrades.AddTeacher(LitTeacher); Seniors.AddTeacher(ItTeacher); Seniors.AddTeacher(NaturalScienceTeacher); FirstGrades.AddStudent(Pesho); FirstGrades.AddStudent(Mara); FirstGrades.AddStudent(Ivan); Seniors.AddStudent(Joanna); Seniors.AddStudent(Plamen); Seniors.AddStudent(Joro); School PMG = new School(); PMG.AddClass(FirstGrades); PMG.AddClass(Seniors); List <IComment> comments = new List <IComment>() { NaturalScienceTeacher, ItTeacher, LitTeacher, Pesho, Mara, Ivan, Joanna, Plamen, Joro, Physics, Mathematics, Literature, English, FirstGrades, Seniors }; foreach (var obj in comments) { Console.WriteLine(obj.ToString()); Console.WriteLine("Personal comment: {0}", obj.Comment); Console.WriteLine(new string('-', 30)); } }