Exemple #1
0
            static void Main(string[] args)
            {
                Student admin = new Student();

                Console.WriteLine(":::    MENU    :::");
                Console.WriteLine("Press 1 for Creating a Student Profile");
                Console.WriteLine("Press 2 for Searching a student Profile");
                Console.WriteLine("Press 3 for Deleting a student  Profile");
                Console.WriteLine("Press 4 for The List of Top 3 of Class");
                Console.WriteLine("Press 5 for Marking Student Attendance");
                Console.WriteLine("Press 6 for Viewing Attendace");
                string choice = "0";

                choice = Console.ReadLine();
                switch (choice)
                {
                case "1":
                    int       lastIndex = 0;
                    Student[] list      = new Student[100];
                    list[lastIndex] = new Student();
                    list[lastIndex].createStudentProfile();
                    lastIndex++;
                    break;

                case "2":
                    admin.searchStudent();
                    break;

                case "3":
                    admin.deleteStudentRecord();
                    break;

                case "4":
                    admin.listTopThree();
                    break;

                case "5":
                    admin.markStudentAttendance();
                    break;

                case "6":
                    admin.viewAttendance();
                    break;

                default:
                    break;
                }
            }