Exemplo n.º 1
0
        static void Main(string[] args)
        {
            CourseManager.LoadCourses(@"C:\Users\a\Google Drive\Semester-2\Comp-123 - Prog 2 - Narendra Pershad\Projects\Wk05_Lab13_Course\TweetFile.txt");

            Console.WriteLine("\nAll courses");
            CourseManager.Display(DisplayOption.All);

            string toSearch = "COMP100";

            Console.WriteLine("\nWith prerequsite " + toSearch);
            CourseManager.Display(DisplayOption.Prerequsite, toSearch);

            Console.WriteLine("\nWith title " + toSearch);
            CourseManager.Display(DisplayOption.Code, toSearch);

            toSearch = "Programing I";
            Console.WriteLine("\nWith name " + toSearch);
            CourseManager.Display(DisplayOption.Name, toSearch);

            toSearch = "2";
            Console.WriteLine("\nIn semester " + toSearch);
            CourseManager.Display(DisplayOption.Semester, toSearch);
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            CourseManager.LoadCourses("course.txt");
            Console.WriteLine("\nAll courses");
            CourseManager.Display(DisplayOption.All);

            string toSearch = "COMP100";

            Console.WriteLine("\nWith prerequsite " + toSearch);
            CourseManager.Display(DisplayOption.Prerequsite, toSearch);


            Console.WriteLine("\nWith title " + toSearch);
            CourseManager.Display(DisplayOption.Code, toSearch);

            toSearch = "Programing I";
            Console.WriteLine("\nWith name " + toSearch);
            CourseManager.Display(DisplayOption.Name, toSearch);

            toSearch = "2";
            Console.WriteLine("\nIn semester " + toSearch);
            CourseManager.Display(DisplayOption.Semester, toSearch);
        }