static void Main(string[] args) { // 1st year 1st term ElawadyDataStructureTest.Subject Math_1 = new ElawadyDataStructureTest.Subject("Math 1", 111); ElawadyDataStructureTest.Subject Ph_1 = new ElawadyDataStructureTest.Subject("Physics 1", 112); ElawadyDataStructureTest.Subject Mecha_1 = new ElawadyDataStructureTest.Subject("Mechanics 1", 113); ElawadyDataStructureTest.Subject Chem = new ElawadyDataStructureTest.Subject("Chemistry", 114); ElawadyDataStructureTest.Subject IntroComp = new ElawadyDataStructureTest.Subject("Introduction to Computer", 115); ElawadyDataStructureTest.Subject Eng_1 = new ElawadyDataStructureTest.Subject("English 1", 116); // 1st year 2nd term ElawadyDataStructureTest.Subject Math_2 = new ElawadyDataStructureTest.Subject("Math 2", 121); ElawadyDataStructureTest.Subject Ph_2 = new ElawadyDataStructureTest.Subject("Physics 2", 122); ElawadyDataStructureTest.Subject Mecha_2 = new ElawadyDataStructureTest.Subject("Mechanics 2", 123); ElawadyDataStructureTest.Subject ProTech = new ElawadyDataStructureTest.Subject("Production Technology", 124); ElawadyDataStructureTest.Subject ED_P = new ElawadyDataStructureTest.Subject("Engineering Drawing and Projection", 125); ElawadyDataStructureTest.Subject Eng_2 = new ElawadyDataStructureTest.Subject("English 2", 126); // 2nd year 1st term ElawadyDataStructureTest.Subject Math_3 = new ElawadyDataStructureTest.Subject("Math 3", 211); ElawadyDataStructureTest.Subject SProg = new ElawadyDataStructureTest.Subject("Structured Programming", 212); ElawadyDataStructureTest.Subject DCD = new ElawadyDataStructureTest.Subject("Digital Circuits Design", 213); ElawadyDataStructureTest.Subject EC_1 = new ElawadyDataStructureTest.Subject("Electric Circuits 1", 214); ElawadyDataStructureTest.Subject E_1 = new ElawadyDataStructureTest.Subject("Electronics", 215); ElawadyDataStructureTest.Subject MSWord = new ElawadyDataStructureTest.Subject("MS Word", 216); // 2nd year 2nd term ElawadyDataStructureTest.Subject Math_4 = new ElawadyDataStructureTest.Subject("Math 4", 221); ElawadyDataStructureTest.Subject PA = new ElawadyDataStructureTest.Subject("Programming Applecations", 222); ElawadyDataStructureTest.Subject Mea = new ElawadyDataStructureTest.Subject("Measurmnets", 223); ElawadyDataStructureTest.Subject EC_2 = new ElawadyDataStructureTest.Subject("Electric Circuits 2", 224); ElawadyDataStructureTest.Subject E_2 = new ElawadyDataStructureTest.Subject("Electronics 2", 225); ElawadyDataStructureTest.Subject TR = new ElawadyDataStructureTest.Subject("Techincal Reports", 226); //3rd year 1st term ElawadyDataStructureTest.Subject DSD = new ElawadyDataStructureTest.Subject("Digital Systems Design", 311); ElawadyDataStructureTest.Subject DS = new ElawadyDataStructureTest.Subject("Data Structure", 312); ElawadyDataStructureTest.Subject NS = new ElawadyDataStructureTest.Subject("Numrical Analysis", 313); ElawadyDataStructureTest.Subject Comm_1 = new ElawadyDataStructureTest.Subject("Comm 1", 314); ElawadyDataStructureTest.Subject ES = new ElawadyDataStructureTest.Subject("Energy Systems", 315); ElawadyDataStructureTest.Subject ET = new ElawadyDataStructureTest.Subject("Engineerging and Technology", 316); //3rd year 2nd term ElawadyDataStructureTest.Subject DM = new ElawadyDataStructureTest.Subject("Discrete Math", 321); ElawadyDataStructureTest.Subject OOP = new ElawadyDataStructureTest.Subject("OOP", 322); ElawadyDataStructureTest.Subject CA = new ElawadyDataStructureTest.Subject("Computer Architecture", 323); ElawadyDataStructureTest.Subject Mach = new ElawadyDataStructureTest.Subject("Machines", 324); ElawadyDataStructureTest.Subject Comm_2 = new ElawadyDataStructureTest.Subject("Comm 2", 325); //4th year 1st term ElawadyDataStructureTest.Subject ps = new ElawadyDataStructureTest.Subject("Programing System", 411); ElawadyDataStructureTest.Subject dbs = new ElawadyDataStructureTest.Subject("Database System", 412); ElawadyDataStructureTest.Subject iim = new ElawadyDataStructureTest.Subject("introduction in microprocessor", 413); ElawadyDataStructureTest.Subject acsy = new ElawadyDataStructureTest.Subject("Automatic control system", 414); ElawadyDataStructureTest.Subject comal = new ElawadyDataStructureTest.Subject("Computer algorithm", 415); ElawadyDataStructureTest.Subject lancomp = new ElawadyDataStructureTest.Subject("Language compilation", 415); ElawadyDataStructureTest.Subject contro = new ElawadyDataStructureTest.Subject("Controllers", 415); //4th year 2st term ElawadyDataStructureTest.Subject info = new ElawadyDataStructureTest.Subject("Information system", 421); ElawadyDataStructureTest.Subject c_gra = new ElawadyDataStructureTest.Subject("Computer Graphics", 422); ElawadyDataStructureTest.Subject op_sys = new ElawadyDataStructureTest.Subject("Operating System", 423); ElawadyDataStructureTest.Subject m_c_e = new ElawadyDataStructureTest.Subject("Modern Control Engineering", 424); ElawadyDataStructureTest.Subject m_a_s = new ElawadyDataStructureTest.Subject("Modeling and simulation", 425); ElawadyDataStructureTest.Subject d_o_m_c = new ElawadyDataStructureTest.Subject("Design of miniature computers", 425); ElawadyDataStructureTest.Subject Add_hand = new ElawadyDataStructureTest.Subject("Address handling", 425); //5th year 1st term ElawadyDataStructureTest.Subject AI = new ElawadyDataStructureTest.Subject("Artifical intelligence", 511); ElawadyDataStructureTest.Subject CN_1 = new ElawadyDataStructureTest.Subject("Networks 1", 512); ElawadyDataStructureTest.Subject SE = new ElawadyDataStructureTest.Subject("Software Engineering", 513); ElawadyDataStructureTest.Subject ECP = new ElawadyDataStructureTest.Subject("Eval Comp Per", 514); ElawadyDataStructureTest.Subject PR = new ElawadyDataStructureTest.Subject("Patterns Recognition", 514); ElawadyDataStructureTest.Subject DISD = new ElawadyDataStructureTest.Subject("Digital Integrated Systems Design", 514); ElawadyDataStructureTest.Subject P_1 = new ElawadyDataStructureTest.Subject("Porject 1", 525); //5th year 2st term ElawadyDataStructureTest.Subject CS = new ElawadyDataStructureTest.Subject("Computing Systems", 521); ElawadyDataStructureTest.Subject DaSe = new ElawadyDataStructureTest.Subject("Data Security", 522); ElawadyDataStructureTest.Subject CN_2 = new ElawadyDataStructureTest.Subject("Networks 2", 523); ElawadyDataStructureTest.Subject NN = new ElawadyDataStructureTest.Subject("Neural Networks", 524); ElawadyDataStructureTest.Subject RE = new ElawadyDataStructureTest.Subject("Robotics Engineering", 524); ElawadyDataStructureTest.Subject ITDIS = new ElawadyDataStructureTest.Subject("Digital Integrated Systems Implementing and Testing", 524); ElawadyDataStructureTest.Subject P_2 = new ElawadyDataStructureTest.Subject("Project 2", 525); // int[] y = new int[10]; // ElawadyDataStructureTest.Test.GetGrade(y); // Console.In.Read(); Dictionary <string, Subject>[] s = new Dictionary <string, Subject> [10]; for (int i = 9; i >= 0; i--) { s[i] = new Dictionary <string, Subject>(); } Test.GetGrade(s); Console.In.Read(); }
/* void CReg (Object CurrentSubject,string NameOfSubject,int CodeOfSubject,Subject preRequestSubject,List<Subject>CurrentTerm) * { * CurrentSubject = tnew Subjec(NameOfSubject, CodeOfSubject); * reg(CurrentSubject, preRequestSubject, CurrentTerm); * * }*/ static void Main(string[] args) { List <Subject>[] term = new List <Subject> [10]; //Term 1; term[0] = new List <Subject>(); Subject math1 = new Subject("Math 1", 111); reg(math1, null, term[0]); Subject phy1 = new Subject("Physics 1", 112); reg(phy1, null, term[0]); Subject mech1 = new Subject("Mechanics", 113); reg(mech1, null, term[0]); Subject chm = new Subject("Chemistry For Engineers", 114); reg(chm, null, term[0]); Subject comintro = new Subject("Introduction to Computer", 115); reg(comintro, null, term[0]); Subject eng1 = new Subject("English 1", 116); reg(eng1, null, term[0]); //term[0] = new List<Subject> { math1, phy1, mech1, chm, comintro, eng1 }; //FIRST TERM //Term 2; term[1] = new List <Subject>(); Subject math2 = new Subject("Math 2", 121); reg(math2, math1, term[1]); Subject phy2 = new Subject("Physics 2", 122); reg(phy2, phy1, term[1]); Subject mech2 = new Subject("Mechanics 2", 123); reg(mech2, mech1, term[1]); Subject prod_mech = new Subject("Production Mechanics", 124); reg(prod_mech, null, term[1]); Subject draw = new Subject("Engineering Drawing and Projection", 125); reg(draw, null, term[1]); Subject eng2 = new Subject("English 2", 126); reg(eng2, null, term[1]); //Term 3; term[2] = new List <Subject>(); Subject math3 = new Subject("Math 3", 211); reg(math3, math1, term[2]); Subject prog1 = new Subject("Structure Programming", 212); reg(prog1, comintro, term[2]); Subject logic = new Subject("Logic Circuts Design", 213); reg(logic, comintro, term[2]); Subject circut1 = new Subject("Electronic Circuts 1", 214); reg(circut1, null, term[2]); Subject elect1 = new Subject("Electronics 1", 215); reg(elect1, null, term[2]); Subject word = new Subject("Microsoft Word", 216); reg(word, null, term[2]); //Term 4; term[3] = new List <Subject>(); Subject math4 = new Subject("Math 4", 221); reg(math4, null, term[3]); Subject prog2 = new Subject("Structure Programming Application", 222); reg(prog2, prog1, term[3]); Subject measure = new Subject("Devices and Measurement", 223); reg(measure, null, term[3]); Subject circut2 = new Subject("Electronic Circuts 2", 224); reg(circut2, circut1, term[3]); Subject elect2 = new Subject("Electronics 2", 225); reg(elect2, elect1, term[3]); Subject excel = new Subject("Technical Reports Writing", 226); reg(excel, word, term[3]); //term5 term[4] = new List <Subject>(); Subject digital = new Subject("Digital Systems Design", 311); reg(digital, logic, term[4]); Subject prog3 = new Subject("Data Structure", 312); reg(prog3, prog2, term[4]); Subject math5 = new Subject("Num", 313); reg(math5, math1, term[4]); // NEED TO EDIT !! Subject comm1 = new Subject("Communication Theory", 314); reg(comm1, circut2, term[4]); Subject energy = new Subject("Energy Systems", 315); reg(energy, circut2, term[4]); Subject tech = new Subject("Engineering and Technology", 316); reg(tech, null, term[4]); //term6 NEED TO CHECK ALL term[5] = new List <Subject>(); Subject math6 = new Subject("inConnected Math", 321); reg(math6, math4, term[5]); Subject oop = new Subject("Object Orianted Programming", 322); reg(oop, prog2, term[5]); Subject arch = new Subject("Computer Archictucture", 323); reg(arch, comintro, term[5]); Subject machine = new Subject("Electric Machines", 324); reg(machine, circut2, term[5]); Subject commuintro = new Subject("Introduction to Communication Systems", 325); reg(commuintro, comm1, term[5]); //term7 term[6] = new List <Subject>(); Subject prog4 = new Subject("Systems Programming", 411); reg(prog4, prog2, term[6]); Subject database = new Subject("Database Systems", 412); reg(database, prog2, term[6]); Subject micro = new Subject("Introduction to Microprocessor", 413); reg(micro, arch, term[6]); Subject control = new Subject("Control", 414); reg(control, null, term[6]); Subject Select_11 = new Subject("Course Choice :\n\t*Math Algorithms\n\t*Assembly", 415); reg(Select_11, null, term[6]); Select_11.PreRequests_subject = new List <Subject> { arch, prog2 }; Subject cdev = new Subject("Control Devices", 416); reg(cdev, elect2, term[6]); //term8 term[7] = new List <Subject>(); Subject info = new Subject("Data Systems", 421); reg(info, arch, term[7]); Subject graph = new Subject("Computer Graphics", 422); reg(graph, comintro, term[7]); Subject os = new Subject("Operating Systems", 423); reg(os, prog4, term[7]); Subject newcontrol = new Subject("Modern Control Engineering", 424); reg(newcontrol, control, term[7]); Subject Select_12 = new Subject("Course Choice :\n\t*Simulation\n\t*Advanced Computer Design", 425); reg(Select_12, math6, term[7]); Subject signal = new Subject("Signal Processing", 426); reg(signal, digital, term[7]); //term9 term[8] = new List <Subject>(); Subject ai = new Subject("Aritficial Intelgince", 511); reg(ai, prog2, term[8]); Subject netcom1 = new Subject("Computer Networks 1", 512); reg(netcom1, prog4, term[8]); Subject progeng = new Subject("Programs Engineering", 513); reg(progeng, prog2, term[8]); Subject Select411 = new Subject("Course Choice :\n\t*Computer Performance Benchmark\n\t*Pattern Recogniztion\n\t*Full Digital System design", 514); reg(Select411, null, term[8]); Select411.PreRequests_subject = new List <Subject> { prog2, prog4, digital }; Subject Select412 = new Subject("Course Choice :\n\t*Computer Performance Benchmark\n\t*Pattern Recogniztion\n\t*Full Digital System design", 514); reg(Select412, null, term[8]); Select412.PreRequests_subject = new List <Subject> { prog2, prog4, digital }; Subject FinalProject = new Subject("Graduation Project", 525); reg(FinalProject, null, term[8]); //term10 term[9] = new List <Subject>(); Subject calsys = new Subject("Calculating Systems", 521); reg(calsys, prog2, term[9]); Subject security = new Subject("Information Security", 522); reg(security, prog2, term[9]); Subject netcom2 = new Subject("Computer Networks 2", 523); reg(netcom2, netcom1, term[9]); Subject Select421 = new Subject("Course Choice :\n\t*Insider Networks\n\t*Robots Engineering\n\t*Full Circuits Design", 524); reg(Select421, null, term[9]); Select421.PreRequests_subject = new List <Subject> { ai, prog2, digital }; Subject Select422 = new Subject("Course Choice :\n\t*Insider Networks\n\t*Robots Engineering\n\t*Full Circuits Design", 524); reg(Select422, null, term[9]); Select422.PreRequests_subject = new List <Subject> { ai, prog2, digital }; term[9].Add(FinalProject); int y = 1; foreach (List <Subject> x in term) { Console.WriteLine("Term " + y + " : \n"); y++; foreach (Subject i in x) { Console.WriteLine(i.Name + " " + i.code); } Console.WriteLine("\n\n\n"); } hacking.dohack(); Test.GetGrade(term); }