Exemplo n.º 1
0
        static void Main(string[] args)
        {
            bool exit = false;      //variable to exit do while loop.

            do
            {
                Messages.Menu();                 //Displays a menu.

                switch (Messages.GetUserInput()) //switch based on users input.
                {
                case "1":
                    AnswerChecker.GetAnswerChecker();
                    break;

                case "2":
                    MemoryBank.GetRandomProblem();
                    break;

                case "3":
                    DataBank.GetDataBank();
                    break;

                case "4":
                    NumberGuesser.GetNumberGuesser();
                    break;

                case "5":
                    exit = true;
                    break;

                default:
                    Messages.ErrorMessage();
                    break;
                }
            } while (exit == false);        //breaks out of while loop.
        }