0% found this document useful (0 votes)
31 views

Computer Project Report II Semester Bca.docx (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views

Computer Project Report II Semester Bca.docx (1)

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

A Project Report on

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)

KANTIPUR CITY COLLEGE


Putalisadak, Kathmandu
2080/12/01
A Project Report on
Casino Game
Submitted in partial fulfillment of the requirement of
Computer Project –II
BCA156CO
Bachelors in computer application (BCA) – II Semester

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.

Kewal Parajuli (320718)

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

Roles and Responsibilities 2

Documentation Organization 3

Chapter 2: Literature Review 5

Overview of Existing System 5

Chapter 3: System Analysis 6

Testing and debugging 6

Software & Hardware Specification 6

Gantt Chart 7

Chapter 4: System Design 8

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

● New users can establish accounts by entering a username and password


● The application features a betting game where users can wager on numbers between 1
and 10, with potential winnings of ten times their bet
● User information is securely stored in a text document to ensure data

Roles and Responsibilities


Team Member Task Performed
Kewal Parajuli ❖ Coding
⮚ Menus
⮚ Report generation
⮚ Testing & debugging
⮚ Research
⮚ File Handling

❖ Documentation
⮚ Literature overview
⮚ Gantt chart

Rabin Bohora ❖ Documentation


⮚ Introduction
⮚ Literature review
⮚ Flowchart
⮚ Conclusion
❖ Coding
⮚ Testing & debugging
⮚ Problem statement

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.

● Offers only one casino game (betting on numbers from 1 to 10)


● lacking graphical user interface (GUI) elements.

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:

- Easy access to various casino games.

- Seamless user authentication and registration process.

- Clear and user-friendly menu interface for navigation.

Cons:

- Limited to the provided features without additional customization or expansion.

6
Chapter 3: System Analysis
Testing and debugging

SN Test objective Expected Output Result Remarks


1 To enter username and Successful login Successful login Pass
password message displayed message displayed
2 To register a new Confirmation message Pass
account for successful Successful
registration displayed registration
3 To play the casino Casino game interface Pass
game displayed Casino game started

Software & Hardware Specification

Operating System Windows 11

Developing Software Dev c++

Language used C programming

Processor i5

Memory 12 GB RAM

7
Gantt Chart

SN Week Strategy Week 1-2 Week 3-4 Week 5 Week Week 9


6-8

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.

Forgot () Facilitates password recovery for users

Rules () Presents guidelines for the casino game.

9
Algorithm

Main Function:

● Display the main menu.

● Accept user choice.

● Based on the choice, call respective functions:

● Login

● Registration

● Forgot Password

● Play Casino Game

● Exit

2. Registration Function:

● Accept username and password from the user.

● Store the credentials in a file.

● Display registration success message and return to the main menu.

3. Login Function:

● Accept username and password from the user.

● Check if the provided credentials match with the records.

● If matched, display login successful and proceed to casino game.

● If not matched, display login error and return to the main menu.

4. Forgot Password Function:

10
● Provide options to search for the password using username or return to the main
menu.

● If username is provided:

● Search for the username in the records.

● If found, display the password.

● If not found, display an error message.

● If returning to the main menu, call the main function.

5. Rules Function:

● Display the rules of the casino game.

● Accept player's name and initial deposit.

● Proceed with the game:

● Accept betting amount and guess from the player.

● Generate a random number.

● Compare the guess with the generated number.

● Update player's balance accordingly.

● Ask if the player wants to play again.

● Display final balance and exit message

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

● Tutorial Point. (n.d.). C++ Tutorial. Retrieved from


https://www.tutorialspoint.com/cplusplus/index.htm
● GeeksforGeeks. (n.d.). C++ Programming Language. Retrieved from
https://www.geeksforgeeks.org/c-plus-plus/

14

You might also like