public static void Main(string[] args)
        {
            try
            {
                Student student = Student.GetStudentInformation();
                student.PrintStudentInformation();
                Student.ValidatingStudentBirthday();
            }
            catch (NotImplementedException ex)
            {
                Console.WriteLine(ex.Message);
            }
            catch (FormatException e)
            {
                Console.WriteLine("The data you entered is incorrect format");
            }
            Teacher teacher = Teacher.GetTeacherInformation();

            teacher.PrintTeacherInformation();
            Uprogram uprogram = Uprogram.GetUprogramInformation();

            uprogram.PrintUprogramInformation();
            DegreeInfo degree = DegreeInfo.GetDegreeInformation();

            degree.PrintDegreeInformation();
            CourseInfo course = CourseInfo.GetCourseInformation();

            course.PrintCourseInformation();
        }
Exemple #2
0
        public static Uprogram GetUprogramInformation()
        {
            Console.WriteLine("Enter Program Name");
            string programName = Console.ReadLine();

            Console.WriteLine("Enter Department Head");
            string departmentHead = Console.ReadLine();

            Console.WriteLine("Enter degree");
            string   degrees  = Console.ReadLine();
            Uprogram uprogram = new Uprogram(programName, departmentHead, degrees);

            return(uprogram);
        }