This document describes a C++ casino game program created by two students for a class. The program uses procedural programming to allow a player to deposit money, bet on a random number between 1 and 10, and potentially win 10 times their bet or lose their money. Key functions and libraries used include main(), rules(), randomize(), loops, and iostream. The students learned programming concepts like functions and logic through creating this simple text-based casino game without graphics.
1 of 9
Downloaded 59 times
More Related Content
Casino game project based on c++
1. CASINO GAME PROJECT
In C++
To
Prof. Ajeet K. Jain
Submitted By-
Niteen Balpande [15STUCS0086]
Kshitij Gupta [15STUCS0069]
2. INTRODUCTION
This C++ program on casino game is a
simple text base game.
We have used procedure oriented method
to design this game.
This program is without graphics to keep
program easy.
3. WHAT DID I LEARN !
Programmin
g concept
Loops
Functions
logic
4. ABOUT THIS PROGRAM
Player can deposit his
money to play. From this
amount he can bet on
number between 1 to 10.
If he win he gets 10 times
of money otherwise lost
his money.
5. FUNCTIONS IN USE
MAIN FUNCTIONS
rules():void
main():int
srand(time(0))
drowline():void
randomize()
LIBRARY FUNCTIONS
<iostream>
<string>
<cstdlib>
<ctime>
7. OBSERVATION
1. We have used programming concept like
do..while loop, user defined function, library
function like randomize(), random() etc.
2. In this program we never use any class.