Пример #1
0
 public totalteachinghour(string courseName, int courseCreditNumber, department departments)
 {
     CourseName         = courseName;
     CourseCreditNumber = courseCreditNumber;
     Departments        = departments;
     courses            = new course[5];
 }
        static void Main(string[] args)
        {
            Console.WriteLine("Welcome to University Management System");
            Console.WriteLine("Developed by Piu Terasa Costa");
            Console.WriteLine("Developer At Kuratoli Software Solutions");
            Console.WriteLine("..........................................");
            Console.WriteLine("..........................................");
            department cse  = new department("CSE");
            department bba  = new department("BBA");
            department eee  = new department("EEE");
            department csse = new department("CSSE");


            course oop2   = new course("OOP2", "3012");
            course oop1   = new course("JAVA", "3011");
            course pl     = new course("PROGRAMING LANGUAGE ", "3010");
            course acc    = new course("Accounting", "2050");
            course device = new course("Electronic Device ", "3070");



            cse.AddCourse(oop2);
            cse.AddCourse(oop1);
            csse.AddCourse(pl);
            eee.AddCourse(pl);
            eee.AddCourse(device);
            bba.AddCourse(acc);

            section A = new section("A");
            section B = new section("B");
            section C = new section("C");
            section D = new section("D");
            section E = new section("E");
            section H = new section("H");

            oop2.AddSection(A);
            oop1.AddSection(B);
            pl.AddSection(C);
            device.AddSection(D);
            acc.AddSection(E);
            oop1.AddSection(H);



            faculty F  = new faculty("Tanvir Ahmed", "17-98635-2", 20);
            faculty F1 = new faculty("Rumana Afrin ", "15-75474-8", 16);
            faculty F2 = new faculty("Bisshawjit Banik ", "17-854739-2", 18);
            faculty F3 = new faculty("Kaniz Fatema ", "17-89653-2", 19);

            F.AddSection(A);
            F.AddSection(B);
            F1.AddSection(E);
            F2.AddSection(D);
            F3.AddSection(C);
            F3.AddSection(H);



            A.AddTeacher(F);
            B.AddTeacher(F);
            C.AddTeacher(F3);
            D.AddTeacher(F2);
            E.AddTeacher(F1);
            H.AddTeacher(F3);



            Console.WriteLine("..........info from Course object...........");
            oop1.ShowSectionFaculty();
            oop2.ShowSectionFaculty();
            pl.ShowSectionFaculty();
            acc.ShowSectionFaculty();
            device.ShowSectionFaculty();


            Console.WriteLine(".........Section info from Faculty object...........");
            F.ShowSectionDetails();
            F1.ShowSectionDetails();
            F2.ShowSectionDetails();
            F3.ShowSectionDetails();

            ;
        }