0% found this document useful (0 votes)
33 views22 pages

Computer Science PROJECT

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

Computer Science PROJECT

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

TECHNO INDIA GROUP PUBLIC SCHOOL,

BALURGHAT

Computer Science Project


Session: 2024-2025
Topic: Hotel Management System”
Submitted By: RATNADIP ROY
Roll No.:
Guided By: Mr.DIPANKAR 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 Mr.Dipankar 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
1.PC
2.MOBILE 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 mysql.connector
from tabulate import tabulate
import random
a=mysql.connector.connect(host="localhost",user="root",
password="admin", database="hotel_sunset")
y=a.cursor()
#all details for admin
#to show employee details
def emp_details():
a=mysql.connector.connect(host="localhost",user="root",
password="admin", database="hotel_sunset")
y=a.cursor()
q="select * from employees"
y.execute(q)
r = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
#to show customer details
Defcustomdet():
a=mysql.connector.connect(host="localhost",user="root",
password="admin", database="hotel_sunset")
y=a.cursor()
x="select * from booking"
y.execute(x)
r = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
a.commit()
#to show room details(all rooms,vacant rooms,booked
rooms)
def room_details():
while True:
print("**********ROOM DETAILS**********")
print("1.Show Rooms")
print("2.Rooms Vacant")
print("3.Rooms 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=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
y.execute("select room_type,prices,count(*) from rooms
group by room_type,prices;")
r = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(r, headers=columns, tablefmt="fancy_grid"))

#to show booked rooms


def rooms_booked():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
bk="Booked"
x="select * from rooms where Status ='{}'".format(bk)
y.execute(x)
r = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))

#to show restaurant details


def restaurant_details():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
z="select*from orders"
y.execute(z)
r = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(r, headers=columns,
tablefmt="fancy_grid"))
#to show all feedback
def fedback():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
x="select * from fdback"
y.execute(x)
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns,
tablefmt="fancy_grid"))

#restaurant
def restaurant():
#VIEW MENU
def menu():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset"
y=a.cursor()
b="select * from menu".format()
y.execute(b)
menu=y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(menu, headers=columns,
tablefmt="fancy_grid"))
if len(menu)>0:
print("Available")
a.commit()
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=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
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)
y.execute(f)
x=y.fetchall()
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)
y.execute(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")
a.commit()

#VIEW ORDER
def vorders():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
m=int(input("Enter your number :"))
n="select * from orders where Mobile_No={} ".format(m)
print("\n","YOUR RECENT ORDERS","\n")
y.execute(n)
o=y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(o, headers=columns,
tablefmt="fancy_grid"))
for i in o:
p="select * from menu,orders where Mobile_No={} and
menu.Dish_ID=orders.ID".format(m)
y.execute(p)
q=y.fetchall()
a.commit()
#cancel order
def corder():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
x=int(input("enter your number:"))
s="delete from orders where Mobile_No={}".format(x)
y.execute(s)
print("\n\n","YOUR ORDER HAS BEEN CANCELLED")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE","\
n\n") a.commit()

#feedback
def fdback():
a=mysql.connector.connect(host="localhost",user="root",
password="admin",database="hotel_sunset")
y=a.cursor()
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)
y.execute(x)
print("\n\n")
print("THANK YOU FOR YOUR FEEDBACK")
print("\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
a.commit()
#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)"
y.execute(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 MYSQL.CONNECTOR
CUR =CON.CURSOR
Q=”show tables”
Cur.execute(Q)
For i in cur:
print(i)

You might also like