Example #1
0
        public static void ExerciseHandler(string currentSelection)
        {
            ExerciseOptions options = new ExerciseOptions();

            Console.Clear();
            // This is where you add your options. Cases must match the parameters you pass to Menu.Options, else the application will default to exit.
            switch (currentSelection)
            {
            case "Exercise 1":
                if (true)
                {
                    Exercise_1 exercise = new Exercise_1();
                    exercise.schoolName = "Suncoast Technical College";
                    exercise.schoolDesc = "A solid technical school located in Sarasota, Florida. They offer a great programming course called .NET Applications!";
                    exercise.schoolColors.Add("Blue");
                    exercise.schoolColors.Add("White");
                    exercise.Run();
                }

                break;

            case "Exercise 3":
                if (true)
                {
                    Exercise_3 exercise = new Exercise_3();
                    exercise.Run();
                }
                break;

            case "Exercise 5":
                if (true)
                {
                    Exercise_5 exercise = new Exercise_5();
                    exercise.Run();
                }
                break;

            case "Exercise 6":
                if (true)
                {
                    Exercise_6 exercise = new Exercise_6();
                    exercise.Run();
                }
                break;

            case "Exercise 7":
                if (true)
                {
                    Exercise_7 exercise = new Exercise_7();
                    exercise.Run();
                }
                break;

            default:
                Environment.Exit(0);
                break;
            }
            options.Options(currentSelection);
        }
Example #2
0
        static void Main(string[] args)
        {
            bool continueLoop = true;
            int  number       = 0;

            while (continueLoop == true)
            {
                continueLoop = Exercises.UtilityMethods.getValidProgramNumber(out number);

                switch (number)
                {
                case 1:
                    Exercise_1.Execute();
                    break;

                case 2:
                    Exercise_2.Execute();
                    break;

                case 3:
                    Exercise_3.Execute();
                    break;

                case 4:
                    Exercise_4.Execute();
                    break;

                case 5:
                    Exercise_5.Execute();
                    break;

                case 6:
                    Exercise_6.Execute();
                    break;

                case 7:
                    Exercise_7.Execute();
                    break;

                case 8:
                    Exercise_8.Execute();
                    break;

                case 9:
                    Exercise_9.Execute();
                    break;

                case 10:
                    Exercise_10.Execute();
                    break;

                case 11:
                    Exercise_11.Execute();
                    break;

                case 12:
                    Exercise_12.Execute();
                    break;

                case 13:
                    Exercise_13.Execute();
                    break;

                case 14:
                    Exercise_14.Execute();
                    break;

                case 15:
                    Exercise_15.Execute();
                    break;

                case 16:
                    Exercise_16.Execute();
                    break;

                case 17:
                    Exercise_17.Execute();
                    break;

                case 20:
                    Exercise_20.Execute();
                    break;

                case 21:
                    Exercise_21.Execute();
                    break;

                case 22:
                    Exercise_22.Execute();
                    break;

                case 25:
                    Exercise_25.Execute();
                    break;

                case 26:
                    Exercise_26.Execute();
                    break;

                case 27:
                    Exercise_27.Execute();
                    break;

                case 31:
                    Exercise_31.Execute();
                    break;

                case 32:
                    Exercise_32.Execute();
                    break;

                case 33:
                    Exercise_33.Execute();
                    break;

                case 34:
                    Exercise_34.Execute();
                    break;

                case 35:
                    Exercise_35.Execute();
                    break;

                case 36:
                    Exercise_36.Execute();
                    break;

                case 37:
                    Exercise_37.Execute();
                    break;

                case 38:
                    Exercise_38.Execute();
                    break;

                //case 39:
                //    Exercise_39.Execute();
                //    break;

                case 40:
                    Exercise_40.Execute();
                    break;

                case 41:
                    Exercise_41.Execute();
                    break;

                case 42:
                    Exercise_42.Execute();
                    break;

                case 43:
                    Exercise_43.Execute();
                    break;

                case 44:
                    Exercise_44.Execute();
                    break;

                case 45:
                    Exercise_45.Execute();
                    break;

                case 46:
                    Exercise_46.Execute();
                    break;

                case 47:
                    Exercise_47.Execute();
                    break;

                case 48:
                    Exercise_48.Execute();
                    break;

                case 49:
                    Exercise_49.Execute();
                    break;

                case 50:
                    Exercise_50.Execute();
                    break;

                case 51:
                    Exercise_51.Execute();
                    break;

                case 52:
                    Exercise_52.Execute();
                    break;

                case 53:
                    Exercise_53.Execute();
                    break;

                case 54:
                    Exercise_54.Execute();
                    break;

                case 55:
                    Exercise_55.Execute();
                    break;

                case 56:
                    Exercise_56.Execute();
                    break;

                case 57:
                    Exercise_57.Execute();
                    break;

                case 58:
                    Exercise_58.Execute();
                    break;

                case 59:
                    Exercise_59.Execute();
                    break;

                case 83:
                    Exercise_83.Execute();
                    break;

                default:
                    Console.WriteLine("Program does not exist!");
                    break;
                }
            }
        }
Example #3
0
        static void Main(string[] args)
        {
            bool continueLoop = true;
            int  number       = 0;

            while (continueLoop == true)
            {
                continueLoop = Exercises.UtilityMethods.getValidProgramNumber(out number);

                switch (number)
                {
                case 1:
                    Exercise_1.Execute();
                    break;

                case 2:
                    Exercise_2.Execute();
                    break;

                case 3:
                    Exercise_3.Execute();
                    break;

                case 4:
                    Exercise_4.Execute();
                    break;

                case 5:
                    Exercise_5.Execute();
                    break;

                case 6:
                    Exercise_6.Execute();
                    break;

                case 7:
                    Exercise_7.Execute();
                    break;

                case 8:
                    Exercise_8.Execute();
                    break;

                case 9:
                    Exercise_9.Execute();
                    break;

                case 10:
                    Exercise_10.Execute();
                    break;

                case 11:
                    Exercise_11.Execute();
                    break;

                case 12:
                    Exercise_12.Execute();
                    break;

                case 13:
                    Exercise_13.Execute();
                    break;

                case 14:
                    Exercise_14.Execute();
                    break;

                case 15:
                    Exercise_15.Execute();
                    break;

                case 16:
                    Exercise_16.Execute();
                    break;

                case 17:
                    Exercise_17.Execute();
                    break;

                case 18:
                    Exercise_18.Execute();
                    break;

                case 19:
                    Exercise_19.Execute();
                    break;

                case 20:
                    Exercise_20.Execute();
                    break;

                case 21:
                    Exercise_21.Execute();
                    break;

                case 22:
                    Exercise_22.Execute();
                    break;

                case 23:
                    Exercise_23.Execute();
                    break;

                case 24:
                    Exercise_24.Execute();
                    break;

                case 25:
                    Exercise_25.Execute();
                    break;

                case 26:
                    Exercise_26.Execute();
                    break;

                case 27:
                    Exercise_27.Execute();
                    break;

                case 28:
                    Exercise_28.Execute();
                    break;

                case 29:
                    Exercise_29.Execute();
                    break;

                case 30:
                    Exercise_30.Execute();
                    break;

                case 31:
                    Exercise_31.Execute();
                    break;

                default:
                    Console.WriteLine("Program does not exist!");
                    break;
                }
            }
        }
Example #4
0
        static void Main(string[] args)
        {
            bool continueLoop = true;
            int  number       = 0;

            while (continueLoop == true)
            {
                continueLoop = UtilityMethods.getValidProgramNumber(out number);

                switch (number)
                {
                case 1:
                    Exercise_1.Execute();
                    break;

                case 2:
                    Exercise_2.Execute();
                    break;

                case 3:
                    Exercise_3.Execute();
                    break;

                case 4:
                    Exercise_4.Execute();
                    break;

                case 5:
                    Exercise_5.Execute();
                    break;

                case 6:
                    Exercise_6.Execute();
                    break;

                case 7:
                    Exercise_7.Execute();
                    break;

                case 8:
                    Exercise_8.Execute();
                    break;

                case 9:
                    Exercise_9.Execute();
                    break;

                case 10:
                    Exercise_10.Execute();
                    break;

                case 11:
                    Exercise_11.Execute();
                    break;

                case 0:
                    //exit
                    continueLoop = false;
                    break;

                default:
                    Console.WriteLine("Program does not exist!");
                    break;
                }
            }
        }
Example #5
0
        static void Main(string[] args)
        {
            bool continueLoop = true;
            int  number       = 0;

            while (continueLoop == true)
            {
                continueLoop = UtilityMethods.getValidProgramNumber(out number);

                switch (number)
                {
                case 1:
                    Exercise_1.Execute();
                    break;

                case 2:
                    Exercise_2.Execute();
                    break;

                case 3:
                    Exercise_3.Execute();
                    break;

                case 4:
                    Exercise_4.Execute();
                    break;

                case 5:
                    Exercise_5.Execute();
                    break;

                case 6:
                    Exercise_6.Execute();
                    break;

                case 7:
                    Exercise_7.Execute();
                    break;

                case 8:
                    Exercise_8.Execute();
                    break;

                case 9:
                    Exercise_9.Execute();
                    break;

                case 10:
                    Exercise_10.Execute();
                    break;

                case 11:
                    Exercise_11.Execute();
                    break;

                case 12:
                    Exercise_12.Execute();
                    break;

                case 13:
                    Exercise_13.Execute();
                    break;

                case 14:
                    Exercise_14.Execute();
                    break;

                case 15:
                    Exercise_15.Execute();
                    break;

                case 16:
                    Exercise_16.Execute();
                    break;

                case 17:
                    Exercise_17.Execute();
                    break;

                case 18:
                    Exercise_18.Execute();
                    break;

                case 19:
                    Exercise_19.Execute();
                    break;

                case 20:
                    Exercise_20.Execute();
                    break;

                case 21:
                    Exercise_21.Execute();
                    break;

                case 22:
                    Exercise_22.Execute();
                    break;

                case 23:
                    Exercise_23.Execute();
                    break;

                case 24:
                    Exercise_24.Execute();
                    break;

                case 25:
                    Exercise_25.Execute();
                    break;

                case 26:
                    Exercise_26.Execute();
                    break;

                case 27:
                    Exercise_27.Execute();
                    break;

                case 28:
                    Exercise_28.Execute();
                    break;

                case 29:
                    Exercise_29.Execute();
                    break;

                case 30:
                    Exercise_30.Execute();
                    break;

                case 31:
                    Exercise_31.Execute();
                    break;

                case 32:
                    Exercise_32.Execute();
                    break;

                case 33:
                    Exercise_33.Execute();
                    break;

                case 34:
                    Exercise_34.Execute();
                    break;

                case 35:
                    Exercise_35.Execute();
                    break;

                case 36:
                    Exercise_36.Execute();
                    break;

                case 37:
                    Exercise_37.Execute();
                    break;

                case 38:
                    Exercise_38.Execute();
                    break;

                case 39:
                    Exercise_39.Execute();
                    break;

                case 40:
                    Exercise_40.Execute();
                    break;

                case 41:
                    Exercise_41.Execute();
                    break;

                case 42:
                    Exercise_42.Execute();
                    break;

                case 43:
                    Exercise_43.Execute();
                    break;

                case 44:
                    Exercise_44.Execute();
                    break;

                case 45:
                    Exercise_45.Execute();
                    break;

                case 46:
                    Exercise_46.Execute();
                    break;

                case 47:
                    Exercise_47.Execute();
                    break;

                case 48:
                    Excercise_48.Execute();
                    break;

                case 49:
                    Exercise_49.Execute();
                    break;

                case 50:
                    Exercise_50.Execute();
                    break;

                case 51:
                    Exercise_51.Execute();
                    break;

                case 52:
                    Exercise_52.Execute();
                    break;

                case 53:
                    Exercise_53.Execute();
                    break;

                case 54:
                    Exercise_54.Execute();
                    break;

                case 55:
                    Exercise_55.Execute();
                    break;

                case 56:
                    Exercise_56.Execute();
                    break;

                case 57:
                    Exercise_57.Execute();
                    break;

                case 58:
                    Exercise_58.Execute();
                    break;

                case 59:
                    Exercise_59.Execute();
                    break;

                case 60:
                    Exercise_60.Execute();
                    break;

                case 61:
                    Exercise_61.Execute();
                    break;

                case 62:
                    Exercise_62.Execute();
                    break;

                case 63:
                    Exercise_63.Execute();
                    break;

                case 64:
                    Exercise_64.Execute();
                    break;

                case 65:
                    Exercise_65.Execute();
                    break;

                case 66:
                    Exercise_66.Execute();
                    break;

                case 67:
                    Exercise_67.Execute();
                    break;

                case 68:
                    Exercise_68.Execute();
                    break;

                case 69:
                    Exercise_69.Execute();
                    break;

                case 70:
                    Exercise_70.Execute();
                    break;

                case 71:
                    Exercise_71.Execute();
                    break;

                case 72:
                    Exercise_72.Execute();
                    break;

                case 73:
                    Exercise_73.Execute();
                    break;

                case 74:
                    Exercise_74.Execute();
                    break;

                case 75:
                    Exercise_75.Execute();
                    break;

                case 76:
                    Exercise_76.Execute();
                    break;

                case 77:
                    Exercise_77.Execute();
                    break;

                case 78:
                    Exercise_78.Execute();
                    break;

                case 79:
                    Exercise_79.Execute();
                    break;

                case 80:
                    Exercise_80.Execute();
                    break;

                case 81:
                    Exercise_81.Execute();
                    break;

                case 82:
                    Exercise_82.Execute();
                    break;

                case 83:
                    Exercise_83.Execute();
                    break;

                case 84:
                    Exercise_84.Execute();
                    break;

                case 85:
                    Exercise_85.Execute();
                    break;

                case 86:
                    Exercise_86.Execute();
                    break;

                case 87:
                    Exercise_87.Execute();
                    break;

                case 88:
                    Exercise_88.Execute();
                    break;

                case 89:
                    Exercise_89.Execute();
                    break;

                case 90:
                    Exercise_90.Execute();
                    break;

                case 91:
                    Exercise_91.Execute();
                    break;

                case 92:
                    Exercise_92.Execute();
                    break;

                case 93:
                    Exercise_93.Execute();
                    break;

                case 94:
                    Exercise_94.Execute();
                    break;

                case 95:
                    Exercise_95.Execute();
                    break;

                case 96:
                    Exercise_96.Execute();
                    break;

                case 97:
                    Exercise_97.Execute();
                    break;

                case 98:
                    Exercise_98.Execute();
                    break;

                case 99:
                    Exercise_99.Execute();
                    break;

                case 100:
                    Exercise_100.Execute();
                    break;

                case 101:
                    Exercise_101.Execute();
                    break;

                case 102:
                    Exercise_102.Execute();
                    break;

                case 103:
                    Exercise_103.Execute();
                    break;

                case 104:
                    Exercise_104.Execute();
                    break;

                case 105:
                    Exercise_105.Execute();
                    break;

                case 106:
                    Exercise_106.Execute();
                    break;

                case 107:
                    Exercise_107.Execute();
                    break;

                case 108:
                    Exercise_108.Execute();
                    break;

                case 109:
                    Exercise_109.Execute();
                    break;

                case 110:
                    Exercise_110.Execute();
                    break;

                case 111:
                    Exercise_111.Execute();
                    break;

                case 112:
                    Exercise_112.Execute();
                    break;

                case 113:
                    Exercise_113.Execute();
                    break;

                case 114:
                    Exercise_114.Execute();
                    break;

                case 115:
                    Exercise_115.Execute();
                    break;

                case 116:
                    Exercise_116.Execute();
                    break;

                case 117:
                    Exercise_117.Execute();
                    break;

                case 118:
                    Exercise_118.Execute();
                    break;

                case 119:
                    Exercise_119.Execute();
                    break;

                case 120:
                    Exercise_120.Execute();
                    break;

                case 121:
                    Exercise_121.Execute();
                    break;

                case 122:
                    Exercise_122.Execute();
                    break;

                case 123:
                    Exercise_123.Execute();
                    break;

                case 124:
                    Exercise_124.Execute();
                    break;

                case 126:
                    Exercise_126.Execute();
                    break;

                case 127:
                    Exercise_127.Execute();
                    break;

                case 128:
                    Exercise_128.Execute();
                    break;

                case 129:
                    Exercise_129.Execute();
                    break;

                case 130:
                    Exercise_130.Execute();
                    break;

                case 131:
                    Exercise_131.Execute();
                    break;

                case 132:
                    Exercise_132.Execute();
                    break;

                case 133:
                    Exercise_133.Execute();
                    break;

                case 134:
                    Exercise_134.Execute();
                    break;

                case 135:
                    Exercise_135.Execute();
                    break;

                case 136:
                    Exercise_136.Execute();
                    break;

                case 137:
                    Exercise_137.Execute();
                    break;

                case 138:
                    Exercise_138.Execute();
                    break;

                case 139:
                    Exercise_139.Execute();
                    break;

                case 140:
                    Exercise_140.Execute();
                    break;

                case 141:
                    Exercise_141.Execute();
                    break;

                case 142:
                    Exercise_142.Execute();
                    break;

                case 143:
                    Exercise_143.Execute();
                    break;

                case 144:
                    Exercise_144.Execute();
                    break;

                case 145:
                    Exercise_145.Execute();
                    break;

                case 146:
                    Exercise_146.Execute();
                    break;

                case 147:
                    Exercise_147.Execute();
                    break;

                case 148:
                    Exercise_148.Execute();
                    break;

                case 149:
                    Exercise_149.Execute();
                    break;

                case 150:
                    Exercise_150.Execute();
                    break;

                case 0:
                    //exit
                    continueLoop = false;
                    break;

                default:
                    Console.WriteLine("Program does not exist!");
                    break;
                }
            }
        }