CS Project
CS Project
Date:
2
Acknowledgement
I would like to express my sincere gratitude to all those who helped
me complete this Computer Science project titled "Hotel
Management System".
First and foremost, I am thankful to Mrs. Babita Yadav, my
Computer Science teacher, for their continuous guidance, valuable
suggestions, and encouragement throughout the project. Their
support played a key role in helping me understand the concepts
and complete this work successfully.
I would also like to thank the Principal Sir, Mr. S.K. Saxena for
providing all the necessary facilities and a supportive environment
for project work.
I am especially grateful to my classmates, friends, and family for
their constant motivation and assistance at various stages of this
project.
This project has helped me enhance my practical knowledge of
Python programming and database management, and has given me
a deeper insight into how a Train Management System works in
real-world applications.
Finally, I thank the Central Board of Secondary Education
(CBSE) for including project work as part of the curriculum, which
provides students like me an opportunity to apply theoretical
knowledge to practical problems.
Harshit Tiwari
Class XII – Science A
Rukmani Devi Jaipuria Public School
3
INDEX
S. No. Topic Page No.
1. Objectives of the Project 5
2. Software Development Life Cycle (SDLC) 6
3. Tools & Languages used in Project 8
4. Python 9
5. Database Management System (MySQL) 11
6. Source Code 12
7. Output Screenshots 16
8. Hardware & Software requirements 20
9. Bibliography 21
4
Objective of the Project
The objective of this project, titled "Hotel Management System",
is to design and develop a software application using Python as
the front-end and MySQL as the back-end database to automate
the day-to-day operations of a hotel. The system aims to handle
tasks such as room booking, guest check-in/check-out, customer
record management, and bill generation efficiently and accurately.
The main goals of this project are:
1. To integrate Python and MySQL to create a menu-driven
application that performs various hotel operations using a
structured database.
2. To automate hotel management tasks such as adding
customer details, checking room availability, updating check-
out status, and generating bills.
3. To apply core programming concepts including loops,
conditionals, functions, exception handling, and database
connectivity using pymysql.
4. To manage data effectively using MySQL tables for storing
guest information, room status, and transaction records
securely.
5. To enhance logical thinking and database skills through the
development of a real-world application that follows CBSE
curriculum guidelines.
This project helps bridge the gap between theoretical knowledge
and practical application, giving hands-on experience in using
databases alongside programming to solve real-life problems.
5
Software Development Life Cycle
1. Requirement Analysis
Purpose: Understand what features the hotel management
system needs.
What was done:
o Identified core functions: Room Booking, Customer
2. System Design
Purpose: Plan how the system will work.
What was done:
o Designed the user interface screens (like login page,
booking form).
o Created the database design with table: Customers.
Language: Python
Database: MySQL
Architecture: Simple standalone system
3. Implementation (Coding)
Purpose: Actually build the system.
What was done:
o Wrote code for login system, room booking, services, etc.
6
o Connected the frontend with the backend database using
pymysql.
o Each module was coded separately to keep it organized.
4. Testing
Purpose: Make sure the system works properly.
What was done:
o Tested each feature: Does booking save to the database?
etc.
o Fixed bugs and improved the flow.
5. Deployment
Purpose: Set up the system for actual use.
What was done:
o Deployed the application on a local machine.
data is loaded.
6. Maintenance
Purpose: Keep the system updated and error-free.
What would be done:
o Add new features like online reservations or printable
reports.
o Fix any issues reported during project demo or use.
7
Tools and Languages used in Project
1. Programming Language:
o Python
2. Database:
o MySQL
3. Database Connectivity:
o Pymysql
4. Development Environment:
o IDLE
5. Operating System:
o Windows
8
Python
Python is an open source, object oriented, high – level
programming language. It was developed by Guido Van Rossum in
1991 at the National Research Institute of Mathematics and
Computer Science, the Netherlands. It is presently owned by
Python Software Foundation (PSF).
Python is based on ABC Language, teaching language created to
replace the programming language BASIC, which was developed
earlier. Python is a General purpose programming language that
can be used effectively to build any kind of program that does not
require direct access to the computer hardware.
Python is used by Google Search Engine, YouTube, Netflix, Spotify,
Dropbox, Instagram, etc. widely.
Features:
Python is interpreted, interactive, directly executed, with pre
– compiled code.
It is free open source and portable language having a large
repository of libraries.
It supports GUI (Graphical User Interface).
It is easily compatible with other languages like Core Java,
C++, C, etc.
Python is used for both Scientific and Non Scientific
programming.
9
Advantages:
It is platform – independent and can run across different
operating systems/platforms like Windows, Linux/Unix,
macOS and other operating system.
Python programmes use clear, simple, concise and English
like instructions are easy to read and understand even by
non-programmers.
It is an interactive, interpreted and Object – Oriented
Programming Language.
Since Python is a simple language with small codes and
extensive libraries, it offers higher productivity to
programmers than languages like C++ and Java. So, you write
less and get more.
Because of a simple and shorter code, lesser time is required
to understand and learn Python programming.
Installing Python
We shall be working on Python 3.13.3; however, any 3.x version
can be used to implement Python. Before we start working,
Python needs to be installed on our system. To install Python, we
must first download the installation package of the required
version from the link/URL given below:
https://www.python.org/downloads/
Python distribution comes with Python IDLE, Python Interpreter
and Preferred Installer Program (Python Package Manager).
10
Database Management System (MySQL)
Database Management Systems are specially designed
applications to create a connection between the user and the
programme, and to store data in an organized manner. The
purpose of DBMS software is to allow the user to create access,
modify and control a database.
Examples of DBMS are MS Access, MySQL, PostgreSQL, SQLite,
Microsoft SQL Server, Oracle, SAP, dBase, FoxPro, etc.
Features:
Store data in a structured way.
Query the Database.
Sort and Manipulate the data in the database.
Validate the data entered and check for inconsistencies.
Advantages:
Control of Data Redundancy
Data Consistency
Sharing of Data
Reduced Programming Effort
Improved Data Integrity
Privacy and Security
Economical
11
Source Code
To connect MySQL with Python:
12
For Main Menu Screen:
13
To make Database in MySQL using Python:
14
To insert values:
Similarly, after entering all the values we can see the table in
Python:
15
Output Screenshots
Login Output:
Main Menu:
16
Output of Choice 1:
Output of Choice 2:
Output of Choice 3:
Output of Choice 4:
17
Output of Choice 5:
Output of Choice 6:
Output of Choice 7:
Output of Choice 8:
18
Output of Choice 9:
19
Hardware and Software Requirements
Hardware:
Processor (CPU) – Intel Core i3
RAM – Minimum 4GB
Hard Disk – 250 GB HDD or 128 GB SSD
Display – 13” or larger
Input Devices – Keyboard and Mouse
Other Peripherals – Printer
Software:
Operating System – Windows 10 or later/ Linux/ macOS
Programming Language – Python/ Java/ C#/ PHP
Database – MySQL/ SQLite/ PostgreSQL/ MongoDB/ MS
Access
Connector – mysql.connector/ pymysql
Other Tools – MS Word/ MS Office
20
Bibliography
1. Textbook of Computer Science with Python by Preeti Arora for
Class 11th.
2. Textbook of Computer Science with Python by Preeti Arora
for Class 12th.
3. ChatGPT
4. Adobe Stock
21
22