Computer Project Report II Semester Bca.docx (1)
Computer Project Report II Semester Bca.docx (1)
Casino Game
Submitted in partial fulfillment of the requirement of
Computer Project – II
BCA156CO
Bachelors of computer application (BCA) – II Semester
Submitted to
Purbanchal University
Biratnagar, Nepal
Submitted by
Kewal Parajuli(320715)
Rabin Bohora(320718)
Submitted to
Purbanchal University
Biratnagar, Nepal
Submitted by
Kewal Parajuli (320715)
Rabin Bohora (320718)
Project Supervisor
Mr. Ashim Kc
KANTIPUR CITY COLLEGE
Putalisadak, Kathmandu
2080/12/01
Abstract
The aim of this project is to develop a Casino Game using C++. Casino Game is a basic
text-based betting app with user registration and game features. When run, it shows a primary
menu with choices to log in, sign up, reset forgotten passwords, participate in the betting
activity, or close the app. Users can access their accounts, create new ones, or reset passwords
using their usernames. The game involves betting on a number from 1 to 10, where successful
bets earn the player ten times their bet. Players must adhere to the game regulations, which are
shown prior to starting the game. The software ensures that user data is stored in a text document
for future access. After playing, users can decide to play again or exit, with their account balance
being adjusted accordingly. The casino game maintains an easy-to-use and user-friendly
interface, making the overall user experience better.
Acknowledgement
We’d like to express our heartfelt gratitude to everyone who has encouraged us to work on
this project. First and foremost, we’d like to express our gratitude to the entire team of
Kantipur City College (KCC) for this chance, especially the professors of science and
technology, who assisted us in furthering our knowledge in this field.
And we’d like to express our special gratitude to our supervisor, Mr. Ashim Kc, who has
consistently encouraged, inspired and provided us with a wealth of information that has
been beneficial. His advice was helpful in completing this assignment. We could not have
asked for a better supervisor, counselor, or mentor.
This project would not have been possible without the assistance of each member, as well
as the entire class, who offered suggestions, shared their experiences, and provided advice
throughout the project. We are grateful for this. Finally, we’d like to express our gratitude to
our friends and colleagues who supported us directly and indirectly throughout this
project.
Declaration
We declare this project titled “Casino Game” submitted in partial fulfillment of BCA is a record
of original work carried out by us in under the supervision of Mr. Ashim Kc and has not formed
the basis of the award if any other degree or diploma, in this or any other Institution or
University. In keeping with the ethical practice in reporting scientific information, due
acknowledgements have been made wherever the findings of others have been cited.
Rabin Bohora(320718)
Date: 2080/12/01
Supervisor’s Approval
This is to certify that the major project entitled Casino Game undertaken and demonstrated by
Kewal Parajuli & Rabin Bohora has been successfully completed under my supervision as a
partial fulfillment of the requirements of the degree of BCA second semester under Purbanchal
University. I, henceforth, approve this project to be awarded the certificate by the concerned
authority.
During supervision, I found students hardworking, skilled and ready to undertake any
professional work related to this field in future.
_______________
Ashim KC
Project Supervisor
Department of IT
Kantipur City College
Date: 2080/12/01
Certificate from Department
Following the Supervisor's Approval and Examiners' Acceptance, the project entitled “Bus
Reservation System" submitted by Kewal Parajuli & Rabin Bohora as a partial fulfillment of the
requirements for the degree of BCA 2nd under Purbanchal University, has been officially
awarded by this certificate.
I wish the students all the best for their future endeavors.
______________
Saroj Pandey
Department of IT
Kantipur City College
Date:2080/12/01
Contents
Chapter1: Introduction 1
Project Introduction 1
Problem Statement 1
Objective 1
Significance 1
Features 2
Documentation Organization 3
Gantt Chart 7
Program Components 8
Algorithm 9
Flowchart 11
Chapter 5: Conclusion and references 13
1
Chapter1: Introduction
Project Introduction
The project is a text-based betting application created to offer users an interactive wagering
experience. Utilizing a menu-driven system, users can access different features such as logging
in, signing up, password retrieval, and playing the game. The main goal of the application is to
provide entertainment and excitement through the betting game while also ensuring user
verification and safeguarding of information.
Problem Statement
● No Validation of User Input
● Insecure Password Storage
Objective
The major objectives of the project are as follows:
● To provide entertainment.
● To eliminate the requirement for physical betting establishments.
Significance
With a clear and visually appealing main menu, users can easily navigate through the available
options, enhancing their overall experience. The login and registration functionalities ensure that
users can securely access their accounts and personal information, enhancing the trustworthiness
of the application. The inclusion of a casino game adds an element of entertainment, allowing
users to enjoy a simple betting game within the console environment.
2
Features
❖ Documentation
⮚ Literature overview
⮚ Gantt chart
3
Documentation Organization
The console-based casino application is designed to provide users with an easy-to-use platform
for enjoying various casino games. Upon starting the application, users are presented with a
straightforward menu where they can choose to log in, register for a new account, recover
forgotten passwords, play casino games, or exit the application. Once logged in, users can access
the casino game, where they can place bets on numbers from 1 to 10 and win money based on
their guesses. The application securely stores user data, such as usernames and passwords, in a
text file. With its simple interface and engaging gameplay, the application aims to offer users a
fun and accessible casino experience.
4
Scope and Limitation
Scope:
The casino application aims to enhance user enjoyment by providing a convenient platform for
playing various casino games. With its simple menu-based interface, the application provides
accessibility to users of all levels of technical proficiency. Additionally, the code's modular
structure allows for potential future enhancements and the addition of new features or games to
further enrich the user experience.
Limitations:
While developing the program we thought of integrating some more features but couldn’t due to
our inefficiency in C programming language.
5
Chapter 2: Literature Review
Overview of Existing System
The casino offers functionalities for user authentication, registration, and password recovery,
ensuring a seamless experience. Additionally, the application presents a clear menu interface for
navigation and interaction. With its implementation of a simple casino game, users can easily
place bets and enjoy the thrill of gambling from the comfort of their own home.
Pros:
Cons:
6
Chapter 3: System Analysis
Testing and debugging
Processor i5
Memory 12 GB RAM
7
Gantt Chart
1. Research and
analysis
2. Problem
identification
3. Design
4. Coding
5. Implementation and
testing
6. Documentation
7. Project Finalization
8
Chapter 4: System Design
Program Components
Preprocessors Characteristics
#include <iostream> Provides basic input/output services for C++
programs, including stream-based I/O
operations and error handling.
#include <fstream> Offers file stream classes to read from and write
to files in C++ programs.
#include <string> Enables manipulation and handling of string
objects and operations in C++.
#include <ctime> It allows us to use string functions which helps
in storing and getting string variables
#include <cstdlib> Provides general utilities in C++, including
functions for memory allocation, random
number generation, and program control.
Some user defined function:
Function Characteristics
Main () Controls program flow and user interaction.
Login () To scan & verify username & password
Registration () Registers new users securely.
9
Algorithm
Main Function:
● Login
● Registration
● Forgot Password
● Exit
2. Registration Function:
3. Login Function:
● If not matched, display login error and return to the main menu.
10
● Provide options to search for the password using username or return to the main
menu.
● If username is provided:
5. Rules Function:
11
Flowchart
12
13
Chapter 5: Conclusion and References
Conclusion
The presented casino game project demonstrates the integration of fundamental programming
concepts to create an interactive and engaging gaming experiences. Through functionalities such
as user registration, password recovery, and gameplay mechanics, users can enjoy a gaming
experience while to security measures to safeguard their information. By leveraging C++
programming and essential libraries, the project not only provides entertainment but also
showcases the versatility and potential of software development in enhancing user experience.
References
14