Simple casino simulator project

进行中 已发布的 7 年前 货到付款
进行中 货到付款

The goal of the project is to create and call your own functions and to practice test case development.

The user can play any one of the games at the casino, for as long as they want and in any order that they want, provided they haven't gone bankrupt. The games at the casino are high-low, 21, craps and the slots. The user should be able to leave the casino (exit the program) at any time from the program's main menu.

Have the user start with a random amount of money between $100 and $200. The program should display a menu with the following options:

1) Play High-Low

2) Play 21

3) Play Craps

4) Play the Slots

5) Run Test Cases

6) Leave Casino

The program should have functions to perform each of the options 1-5 in the menu. Additionally, displaying the menu should be a function that is called from main( ) and you should create a function to calculate the amount won. A good modular design will require more than just these functions.

You should display the user's current balance before each game. After that, you should ask them how much they want to bet on that round of the game. Do not allow the player to bet more than they have or less than $1! You can assume that the user only bet whole dollar amounts.

C++编程 软件开发

项目ID: #12011523

关于项目

1个方案 远程项目 活跃的7 年前

1 威客就此工作平均出价 $155

asadrana91

A proposal has not yet been provided

$155USD 在1天里
(45条评论)
6.1