TECHNO INDIA GROUP PUBLIC SCHOOL,
BALURGHAT
Computer Science Project
Session: 2024-2025
Topic: Hotel Management System”
Submitted By: RATNADIP ROY
Roll No.:
Guided By: [Link] ROY
Certificate
This is to certify that RATNADIP ROY, student of
class XII (SCIENCE) has successfully prepared his project
on HOTEL MANAGEMENT SYSTEM under the guidance
of [Link] Roy. He has taken interest and
has shown at most sincerity in completion of this
project.
I certify this project up to my expectation & as per
guidelines issued by CBSE, NEW DELHI.
Signature of internal Signature of external
examiner examiner
…………………………………
……………………………………
Signature of Principal
……………………………………
Acknowledgement
I would like to express deep gratitude to my project guide
Mr. DIPANKAR ROY for guiding me immensely through
the
course of the project. He always evinced keen interest in
my
project. His constructive advice & constant motivation have
been responsible for the successful completion of this
project.
My sincere thanks goes to Mr. SHAILESH PRASAD
SINHA
(Principal)Sir for his co-ordination in extending every
possible
support for the completion of this project.
At last but not the least, I would like to thank all those
who
have helped directly or indirectly towards the completion of
this project.
HARDWARE AND
SOFTWARE
REQUIRED
HARDWARE
[Link]
[Link] PHONE
SOFTWARE
1. PYTON(Latest Version)
2. MYSQL
3. PYTHON-MYSQL CONNECTOR
CONTENTS
Sl.N
o. Topics
1. About Hotel
2. Introduction
3. Python Codes
4. MySQL Database
5. Output
6. References
Hotel
A hotel is a commercial establishment that provides lodging,
accommodation, and other services to travellers or tourists. Hotels
typically offer a range of rooms or suits with varying levels of
amenities and services. These establishments can vary widely in size
and style, from small boutique hotels to large luxury resorts.
Key features of hotels include:
1. Accommodation: Hotels provide rooms or suites for guests to stay
overnight or for an extended period.
2. Services: In addition to lodging, hotels often offer various services
such as room service, housekeeping, concierge, and facilities like
restaurants, gyms, swimming pools, conference rooms, and more.
3. Classification: Hotels are often classified based on factors like their
size, amenities, and overall quality. Common classifications include
budget/economy hotels, mid-range hotels, and luxury hotels.
4. Booking: Guests typically make reservations to secure their
accommodations in advance. This can be done through various
means, including online booking platforms, travel agencies, or
directly with the hotel.
5. Hospitality Industry: Hotels are an integral part of the hospitality
industry, which encompasses businesses that provide services to
travellers and customers seeking leisure and comfort.
Overall, hotels play a crucial role in the travel and tourism industry,
offering a temporary home away from home for individuals and
groups seeking accommodation during their travels.
INTRODUCTION
The Hotel Management System (HMS) is a comprehensive
software solution designed to streamline and optimize the
operations of hotels and hospitality establishments. This
integrated system combines various modules to efficiently
manage different aspects of hotel functions, from
reservation and guest services to billing and inventory
management.
The reservation module of the HMS enables seamless
booking processes, allowing guests to make reservations
online or through the front desk. It maintains a centralized
database of room availability, ensuring accurate and up-
todate information. The system also facilitates quick check-
ins and check-outs, enhancing the overall guest experience.
Efficient guest services are a hallmark of the HMS, which
includes features such as room service management,
housekeeping, and personalized guest preferences. This
ensures a high level of customer satisfaction and loyalty.
Additionally, the system automates routine tasks, freeing
up staff to focus on providing exceptional service.
Financial management is another key component,
encompassing billing, invoicing, and reporting. The
HMS generates detailed financial reports, helping
hotel owners and managers make informed
decisions to maximize profitability. It also integrates
with point-of-sale systems, managing various
revenue streams such as restaurants, bars, and
spa services.
Inventory management is crucial for maintaining
optimal stock levels in areas like housekeeping
supplies and food and beverage items. The HMS
tracks inventory, automates reordering processes,
and minimizes wastage, contributing to cost
efficiency.
Security features, including user access controls and
data encryption, safeguard sensitive information and
ensure compliance with privacy regulations. The
system also aids in marketing efforts through guest
relationship management (CRM) tools, allowing hotels
to personalize promotions and loyalty programs.
In conclusion, the Hotel Management System is an
indispensable tool for modern hotels, enhancing
operational efficiency, improving guest satisfaction,
and ultimately contributing to the success of
hospitality businesses.
Key features of a Hotel Management System
typically include:
1. Reservation Management: Allows the hotel staff to
efficiently handle room bookings, cancellations, and
modifications. It helps in managing room availability, rates,
and guest preferences.
2. Front Desk Operations: Enables the front desk staff to
check-in/check-out guests, generate room keys, and manage
guest information. It may also include features like guest
folio creation and invoice generation.
3. Billing and Invoicing: Handles the financial aspects of guest
stays, including room charges, additional services, and taxes.
It generates invoices and receipts for guest.
4. .Inventory Management: Tracks and manages hotel
inventory, including housekeeping supplies, linens, and other
materials. This helps in maintaining optimal stock levels and
preventing shortages.
5. Housekeeping Management: Streamlines housekeeping
tasks such as room cleaning schedules, maintenance
requests, and inventory restocking. It ensures rooms are
prepared efficiently for incoming guests.
6. Reporting and Analytics: Provides detailed reports and
analytics on various aspects of hotel operations, allowing
management to make informed decisions. Reports may
cover occupancy rates, revenue, and guest demographics.
7. Point of Sale (POS):Manages the hotel's various Revenue -
generating outlets such as restaurants, bars, spa, and other
services. It helps in tracking sales, inventory, and generating
bills.
8. Guest Relationship Management (CRM): Helps in building
and maintaining relationships with guests by managing
guest profiles, preferences, and feedback. This can lead to
personalized services and improved guest satisfaction.
9. Security and Access Control: Ensures the security of guest
data and property by implementing access controls and
monitoring systems. It may include features like key card
access and surveillance.
10. Channel Management: Manages the distribution of room
inventory across various online booking channels to optimize
occupancy rates and maximize revenue.
11. Implementing a Hotel Management System not only
enhances operational efficiency but also contributes to a
better overall guest experience. The system can be tailored
to meet the specific needs of different types and sizes of
hospitality establishments, including hotels, resorts, motels,
and bed-and-breakfasts.
PYTHON
CODES
import [Link]
from tabulate import tabulate
import random
a=[Link](host="localhost",user="root",
password="admin", database="hotel_sunset")
y=[Link]()
#all details for admin
#to show employee details
def emp_details():
a=[Link](host="localhost",user="root",
password="admin", database="hotel_sunset")
y=[Link]()
q="select * from employees"
[Link](q)
r = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
#to show customer details
Defcustomdet():
a=[Link](host="localhost",user="root",
password="admin", database="hotel_sunset")
y=[Link]()
x="select * from booking"
[Link](x)
r = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
[Link]()
#to show room details(all rooms,vacant rooms,booked
rooms)
def room_details():
while True:
print("**********ROOM DETAILS**********")
print("[Link] Rooms")
print("[Link] Vacant")
print("[Link] Booked")
print("FOR EXIT ENTER ANY NO.: ")
ch=int(input("Enter your choice: "))
if ch==1:
show_rooms()
elif ch==2:
room_vacant()
elif ch==3:
rooms_booked()
else:
print("INVALID INPUT")
break
#to show all rooms
def showrooms():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
[Link]("select room_type,prices,count(*) from rooms
group by room_type,prices;")
r = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(r, headers=columns, tablefmt="fancy_grid"))
#to show booked rooms
def rooms_booked():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
bk="Booked"
x="select * from rooms where Status ='{}'".format(bk)
[Link](x)
r = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
#to show restaurant details
def restaurant_details():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
z="select*from orders"
[Link](z)
r = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
#to show all feedback
def fedback():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
x="select * from fdback"
[Link](x)
x = [Link]()
columns = [i[0] for i in [Link]]
print(tabulate(x, headers=columns,
tablefmt="fancy_grid"))
#restaurant
def restaurant():
#VIEW MENU
def menu():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset"
y=[Link]()
b="select * from menu".format()
[Link](b)
menu=[Link]()
columns = [i[0] for i in [Link]]
print(tabulate(menu, headers=columns,
tablefmt="fancy_grid"))
if len(menu)>0:
print("Available")
[Link]()
yn=int(input("Do you want to order an item ?type(1 for
yes/2 for back to main page):"))
if yn ==1:
b_order()
elif yn==2:
print("THANK YOU")
print("YOU HAVE BEEN REDIRECTED TO MAIN PAGE")
customer_slot()
#BOOKING ORDER
def b_order():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
Id=int(input("ENTER DISH NO.: "))
Quantity=int(input("ENTER QUANTITY: "))
Name=input("ENTER YOUR NAME: ")
Mobile_No=int(input("Enter mobile no."))
Address=input("Enter Address:")
f=("select * from menu where Dish_ID={}").format(Id)
[Link](f)
x=[Link]()
itn=x[0][1]
ip=x[0][3]
p=ip*Quantity
ins="insert into orders
(ID,Name,Quantity,Item_Price,Total_Price,Mobile_No,Adres
s) values({},'{}',{},{},{},{},'{}')".format(Id,
itn,Quantity,ip,tp,Mobile_No,Address)
[Link](ins)
print("THANKS FOR THE ORDER","\n\n","YOUR ORDER HAS
BEEN ORDERED SUCCESSFULLY","\n\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
[Link]()
#VIEW ORDER
def vorders():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
m=int(input("Enter your number :"))
n="select * from orders where Mobile_No={} ".format(m)
print("\n","YOUR RECENT ORDERS","\n")
[Link](n)
o=[Link]()
columns = [i[0] for i in [Link]]
print(tabulate(o, headers=columns,
tablefmt="fancy_grid"))
for i in o:
p="select * from menu,orders where Mobile_No={} and
menu.Dish_ID=[Link]".format(m)
[Link](p)
q=[Link]()
[Link]()
#cancel order
def corder():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
x=int(input("enter your number:"))
s="delete from orders where Mobile_No={}".format(x)
[Link](s)
print("\n\n","YOUR ORDER HAS BEEN CANCELLED")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE","\
n\n") [Link]()
#feedback
def fdback():
a=[Link](host="localhost",user="root",
password="admin",database="hotel_sunset")
y=[Link]()
fdn=input("Enter your name:")
print("Write something about us...")
fdi=input()
print("Write something about us...")
fdi=input()
x="insert into fdback values('{}','{}')".format(fdn,fdi)
[Link](x)
print("\n\n")
print("THANK YOU FOR YOUR FEEDBACK")
print("\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
[Link]()
#welcome
def start1():
while True:
print("\n")
print("1. VIEW MENU")
print("2. VIEW YOUR ORDERS")
print("3. CANCEL ORDER")
print("4. FEEDBACK")
print("5. EXIT")
ch1=int(input(" enter your choice:"))
if ch1==1:
menu()
elif ch1==2:
vorders()
elif ch1==3:
corder( )
elif ch1==4:
fdback()
elif ch1==5:
break
else:
print("\n","INVALID CHOICE"," \n" ,"TRY AGAIN."," \n")
start1()
#booking rooms section
# Create the table if not exists
create_table = "CREATE TABLE IF NOT EXISTS booking
(Booking_ID int(10) PRIMARY KEY,Room_Type varchar(20)
not null,Guest_Name VARCHAR(255),Phone_number
varchar(15) not null, Room_Number int(5) not null,
Check_In_Date DATE, Check_Out_Date DATE)"
[Link](create_table)
Acknowledgement
I would like to express deep gratitude to my project guide
Mr. DIPANKAR ROY for guiding me immensely through the
course of the project. He always evinced keen interest in
my
project. His constructive advice & constant motivation have
been responsible for the successful completion of this
project.
My sincere thanks goes to Mr. SHAILESH PRASAD SINHA
(Principal)Sir for his co-ordination in extending every
possible
support for the completion of this project.
At last but not the least, I would like to thank all those
who
have helped directly or indirectly towards the completion of
this project.
OPEN PYCHARM: IMPORT [Link]
CUR =[Link]
Q=”show tables”
[Link](Q)
For i in cur:
print(i)