The Exercise:
- Write a C++ program that plays the game of Roulette. The game is played by spinning a wheel
with a small ball and waiting until the ball at random ends up in one of 38 holes.
- You enter the casino with $1000, select your winning number and bet $1 on that number.
- If you win the bank pays you $35, otherwise you loose your bet.
- You continue to bet $1 on your lucky number until you have lost all your money.
- At game end, i.e. when you have lost all your money the program should display:
- Total number of times you have won.
- Total of times you have lost.
- Highest amount of money you held in your hands during the game.
Deliverables
- A stepwise programming description of your approach to developing the simulation
- C++ source file for the application (no need to include an exe file)
Submission Guidelines
- All written work such as the stepwise description should be submitted in digital form as a webpage, word document or adobe acrobat (pdf) file.
- code should be well formatted, i.e. using white space, tabs and parentheses to make the code easy for the eye to see and read.
- code should be well commented, its not enough for your application to work, I want to see your thought processes
so include copious comments in your code explaining the choices you have made and the reasoning behind them.
- Application should compile on Dev-C++ IDE on Windows XP
Due date
- All files should be loaded to your folder on student-iat.ubalt.edu before the start of class on 03/16/05.
- create a folder for assignment 3 and place all submission files there
|