Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Casino Game

This project is based on a Normal Game and made by C++

  • Loggen Sie sich ein, um Kommentare anzuzeigen.

  • Gehören Sie zu den Ersten, denen das gefällt!

Casino Game

  1. 1. Aryabhatta International College of Technical Education Ajmer, Rajasthan A PROJECT REPORT ON Casino Game: C++ Submitted in partial fulfilment for Award of the Degree of 2017 Year, BACHELOR OF COMPUTER APPLICATION Submitted to Aryabhatta International of College Technical Education Submitted by: Riddhi Chouhan
  2. 2. ACKNOWLEDGEMENT I am Riddhi Chouhan Student of Bachelor’s ofcomputer application Aryabhatta International College OfTechnicalEducation would like to express my gratitude to each and every person who has contributed in stimulating suggestions and encouragement which really helped me to co-ordinate my project. I also thank Aryabhatta International College Of TechnicalEducation who provided insight and expertise that greatly assisted the project. Also, a special thanks to my teacher, parents and colleagues who have supported me at every step. Not to forget, the almighty who blessed me with good health becauseof which I worked more I worked more efficiently and better
  3. 3.  Casino Game:  Registration Page  GAME IS CONTINUE:
  4. 4.  Source Code: #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<time.h> void main() { clrscr(); int n,ch,betamt,no,b,h; long int totamt; char name[20]; cout<<"nttt----------------------"; cout<<"ntttWELCOME TO CASINO GAME"; cout<<"nttt----------------------"; getch(); clrscr(); cout<<"tttREGISTRATION PAGE"; cout<<"nnRules for the Game:-"; cout<<"n1.) Press any number of your choice."; cout<<"n2.) Enter the bet amount from total amount."; cout<<"n3.) If you win the bet amount increse by 5 times."; cout<<"nnEnter your name: "; cin>>name; cout<<"Enter amount: "; cin>>totamt;
  5. 5. cout<<"nnDop you want to continue with the game"; cout<<"n1.) Press 1 for Yes"; cout<<"n2.) Press 2 for Exit"<<endl; cin>>ch; if(ch==1) { } else { exit(0); } getch(); clrscr(); cout<<"nnRules for the Game:-"; cout<<"n1.) Press any number of your choice."; cout<<"n2.) Enter the bet amount from total amount."; cout<<"n3.) If you win the bet amount increse by 5 times."; cout<<"nnPlayer Name: "<<name; cout<<"nTotal amount: "<<totamt; a: cout<<"nEnter amount to bet:"; cin>>betamt; if(betamt>totamt) {
  6. 6. cout<<"You entered more amount than the total amount"<<endl; goto a; } cout<<"n*********************************"; cout<<"nEnter number of your choice:-"; cout<<"n*********************************"; b: cout<<"nnEnter your no.:"; cin>>no; randomize(); b=rand()%10; if(b==no) { cout<<"nnYOU WON THE GAME"; cout<<"nGenerated no:"<<b; totamt=totamt-betamt*5; cout<<"nCurrent Balance:"<<totamt; } else { cout<<"nYOU LOOSE THE GAME"<<endl; cout<<"Generated no:"<<b; totamt=totamt-betamt; cout<<"nCurrent Balance:"<<totamt; }
  7. 7. cout<<"nn1.) Continue the game"; cout<<"n2.) Exit the game"<<endl; cin>>ch; if(ch==1) { cout<<"Total amount:"<<totamt; cout<<"nEnter amount to bet:"; cin>>betamt; goto b; } else { exit(0); } getch(); }
  8. 8. Thank you Created By:-Riddhi Chouhan Aryabhatta International College of Technical Education

×