コード例 #1
0
        static void Main(string[] args)
        {
            var student   = InputPerson();
            var professor = InputPerson();

            OutPutPerson(student);
            OutPutPerson(professor);

            var degree = new UniversityDegree()
            {
                Degree             = Degree.PhD,
                Courses            = new List <string>(new string[] { "History", "Computer Science", "Engineering" }),
                IsCreditsRequeired = true,
                Prerequisites      = new List <string>(new string[] { "Bachelor degree" })
            };

            var program = new UniversityProgram()
            {
                ProgramName = "Computer Science",
                Head        = professor,
                Degrees     = new List <Degree>()
                {
                    Degree.Bachelor, Degree.Master, Degree.PhD
                }
            };

            Console.ReadLine();
        }
コード例 #2
0
        /// <summary>
        /// Collect and print University and Program Data
        /// </summary>
        private static void CollectProgramData()
        {
            program = new UniversityProgram();

            program.UniversityName = "Colorado State University";
            program.ProgramName    = "CIS Graduate Program";

            program.ProgramCoreCourses = new string[] {
                "CIS600 - IT and Project Management",
                "CIS601 - Enterprise Computing & Systems Integration",
                "CIS602 - Microsoft: DEV204x Programming with C#",
                "CIS605 - Business Visual Application Development",
                "CIS606 - Application Software Infrastructure",
                "CIS610 - Software Development Methodology",
                "CIS611 - Object-Oriented Systems",
                "CIS620 - IT Communication Infrastructure",
                "CIS655 - Business Database Systems",
                "CIS665 - E-Business Application Technology",
            };

            program.ProgramElectiveCourses = new string[] {
                "BUS690C - Agile Project Management with Scrum",
                "BUS690C - Information Technology Management",
                "BUS690C - Data Visualization and Manipulation",
                "BUS690C - Advanced Networking and Security",
                "CIS570 - Business Intelligence",
                "CIS575 - Applied Data Mining and Analytics in Business",
                "CIS670 - Advanced Project Management and Preparation for the PMP Exam",
                "CIS680A1 - Data, Systems and Network Security",
                "CIS695 - Professional Project or Paper",
            };
        }
コード例 #3
0
        public static void Main(string[] args)
        {
            /*
             * Assignment Says: Assign values to the fields in at least one of the student structs in the array
             *
             * So I am going to have 4 empty student structs.
             */

            //Initialize Array
            Student[] students = new Student[5];


            UniversityDegree  degree  = new UniversityDegree(DegreeLevel.Doctorate, "Permaculture Design", 270);
            UniversityProgram program = new UniversityProgram("Whole Systems Design",
                                                              new[] { DegreeLevel.Masters, DegreeLevel.Doctorate },
                                                              new Professor("Dr.", "Paul", "Statmen", "Permaculture"));
            Professor professor = new Professor("Dr.", "David", "Holmgren", "Permaculture");
            Course    course    = new Course("PD450",
                                             "Permaculture Applied to City Rooftops",
                                             "Use permaculture principles to bring sustaibility to city roof tops",
                                             5,
                                             professor);


            //Set structs
            students[0] = new Student("Andre",
                                      "Davis",
                                      new DateTime(1982, 11, 11),
                                      "1234 Awesome Lane",
                                      string.Empty,
                                      "Seattle",
                                      State.WA,
                                      "98102-1234",
                                      Country.USA,
                                      "Cubicle Jockey",
                                      degree,
                                      program,
                                      course);

            //Allowed to be empty via assignment instructions
            students[1] = new Student();
            students[2] = new Student();
            students[3] = new Student();
            students[4] = new Student();


            //Display populated Student struct object.
            Console.WriteLine(students[0]);
            Console.WriteLine("Press ANY key to exit.");
            Console.ReadKey();
        }
コード例 #4
0
 public Student(string fName, string lName, DateTime bDay, string address, string address1,
                string city, State state, string zip, Country country, string notes,
                UniversityDegree degree, UniversityProgram program, Course course) : this()
 {
     FirstName = fName;
     LastName  = lName;
     Birthday  = bDay;
     Address   = address;
     Address1  = address1;
     City      = city;
     State     = state;
     Zip       = zip;
     Country   = country;
     Notes     = notes;
     Degree    = degree;
     Program   = program;
     Course    = course;
 }