Exemple #1
0
        // constructor

        // Member methods
        public void RunSimulation()
        {
            UserInterface.Welcome();

            CreateMarketingFirmWithManager();

            // Create sweepstakes with contestants
            while (UserInterface.AskUserYesOrNo("Create sweepstakes", true))
            {
                marketingFirm.CreateSweepstake();
            }

            // Declare winners for all sweepstakes
            UserInterface.PrintSweepstakesResultsHeader();
            while (marketingFirm.RunNextSweepstake())
            {
                ;
            }
        }