static void Main(string[] args) { // The code provided will print ‘Hello World’ to the console. // Press Ctrl+F5 (or go to Debug > Start Without Debugging) to run your app. Console.WriteLine("Hello Principle!"); Console.WriteLine("I've generated a new school for you!"); //Creating courses for school Course Math = new Course("MA 354: Discrete Math ", "NS 137 : MTWR 8am-10am"); Course dataStructs = new Course("CS 260: Data Structs ", "ODS 133 : MTR 9am-10am"); Course cPU_Org = new Course("CS 271: CPU Organiz.. ", "NS 137 : MWF 1pm-3am"); Course Dance = new Course("DA 101: Jiggy with it ", "MA 137 : MTWRF 8am-5pm"); Course Chem = new Course("CH 117: Chemical X ", "NS 137 : MTWR 8am-10am"); Course Physics = new Course("PHY 210: Inertia Stuff ", "IS 312 : MTWR 4pm-5pm"); Course Weights = new Course("WE 254: Weight Straining ", "SA 108 : MR 2pm-5pm"); Course Barbi = new Course("BA 165: Barbi Class", "BAB 111 : M 8am-10am"); Course BIO = new Course("BIO 255: Frogs & Cows ", "NS 113 : MTWR 8am-10am"); Course PE = new Course("PE 354: Advanced Lounging ", "WUC 110 : MTWR 8am-10am"); //creating students for school Student tom = new Student("Tom"); Student barb = new Student("Barb"); Student alice = new Student("Alice"); Student jim = new Student("Jim"); Student brittany = new Student("Brittany"); Student jenny = new Student("Jenny"); //creating Professors for the school //creatig students for school and assigning courses Console.Write("--------------------------Professors-------------------------------------------------------------------"); Professor professorPhil = new Professor("Phil"); Professor professorSmith = new Professor("Smith"); Professor professorBeatrice = new Professor("Beatrice"); Professor professorDennis = new Professor("Deniis"); Professor professorMartha = new Professor("MARTHAA!!"); Professor professorGirl = new Professor("Girl"); //assigning courses to students tom.addNewCourse(Math); tom.addNewCourse(Weights); tom.addNewCourse(Chem); barb.addNewCourse(Dance); barb.addNewCourse(BIO); barb.addNewCourse(dataStructs); alice.addNewCourse(cPU_Org); jim.addNewCourse(Barbi); brittany.addNewCourse(PE); jenny.addNewCourse(PE); //Creating classrooms for school and adding students to each Classroom one = new Classroom(Math); one.addStudent(tom); one.addStudent(alice); one.addStudent(barb); Classroom two = new Classroom(dataStructs); two.addStudent(jenny); two.addStudent(brittany); two.addStudent(jim); Classroom three = new Classroom(cPU_Org); three.addStudent(jenny); three.addStudent(brittany); three.addStudent(alice); Classroom four = new Classroom(Weights); four.addStudent(tom); four.addStudent(brittany); four.addStudent(jim); Classroom five = new Classroom(Barbi); five.addStudent(brittany); five.addStudent(jim); five.addStudent(alice); Classroom six = new Classroom(PE); six.addStudent(jenny); six.addStudent(brittany); six.addStudent(jim); //assigning class rooms to professors professorPhil.addClassRoom(one); professorPhil.printInfo(); professorSmith.addClassRoom(two); professorSmith.printInfo(); professorBeatrice.addClassRoom(three); professorBeatrice.printInfo(); professorDennis.addClassRoom(four); professorDennis.printInfo(); professorMartha.addClassRoom(five); professorMartha.addClassRoom(two); professorMartha.addClassRoom(one); professorMartha.addClassRoom(four); professorMartha.printInfo(); professorGirl.addClassRoom(six); professorGirl.printInfo(); Console.Write("--------------------------Students---------------------------------------------------------------------\n"); tom.printInfo(); barb.printInfo(); alice.printInfo(); jim.printInfo(); brittany.printInfo(); jenny.printInfo(); Console.Write("--------------------------Classrooms---------------------------------------------------------------------\n"); one.printClassroom(); two.printClassroom(); three.printClassroom(); four.printClassroom(); five.printClassroom(); six.printClassroom(); Console.WriteLine("Student SayHi() "); tom.SayHi(); Console.WriteLine("Professor SayHi() "); professorBeatrice.SayHi(); Console.ReadKey(); // Go to http://aka.ms/dotnet-get-started-console to continue learning how to build a console app! }