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++ การพัฒนาซอฟต์แวร์

หมายเลขโปรเจค: #12011523

เกี่ยวกับโปรเจกต์

ข้อเสนอ 1 ใบ โปรเจกต์ระยะไกล ใช้งาน %project.latestActivity_relativeTime|แทนที่%

freelancer 1 คน กำลังเสนอราคาเฉลี่ยที่ $155 สำหรับงานนี้

asadrana91

A proposal has not yet been provided

$155 USD ใน 1 วัน
(45 รีวิว)
6.1