Dice Game
Write a program that simulates a dice game. This is a one player game against the computer.
The player starts with 100 points. Use a random number generator to simulate the rolling of two dice. Each roll of the dice cost the user 10 points. The sum of the dice pays the user the following winnings:
Roll of | Winning |
2 | 0 |
3 | 2 |
4 | 3 |
5 | 5 |
6 | 7 |
7 | 10 |
8 | 12 |
9 | 15 |
10 | 20 |
11 | 25 |
12 | 30 |
©2003 C. Whittington