0% found this document useful (0 votes)
32 views37 pages

CS Project 2023 24 PDF

The document outlines a project on a Hotel Management System developed by Akash Kumar for the academic year 2023-24. It includes a certification of completion, acknowledgments, required hardware and software, and detailed descriptions of hotel operations and system functionalities. The project features Python code for booking rooms, managing inventory, and handling guest services, showcasing the integration of various modules to enhance hotel management efficiency.

Uploaded by

drawwithali7
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)
32 views37 pages

CS Project 2023 24 PDF

The document outlines a project on a Hotel Management System developed by Akash Kumar for the academic year 2023-24. It includes a certification of completion, acknowledgments, required hardware and software, and detailed descriptions of hotel operations and system functionalities. The project features Python code for booking rooms, managing inventory, and handling guest services, showcasing the integration of various modules to enhance hotel management efficiency.

Uploaded by

drawwithali7
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/ 37

Computer Science Project

2023-24
Topic: Hotel Management System
Submitted By: AKASH KUMAR ‘A’)
Roll No.: (XII -
BEHERA
Guided By: Mr. SAROJ KANTA MISRA(PGT CS)
CERTIFICATE
This is to certify that Ali Azain of class: XII f oF
SARVODAY BAL VIDYALAY has done his Project
on HOTEL MANAGEMENT SYSTEM under my
supervision.

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.

Internal Examiner External Examiner

Principal
ACKNOWLEDGMENT

It is with pleasure that I acknowledge my sincere


gratitude to our teacher, MR. Faizan who taught
and undertook the responsibility of teaching the
subject computer science. I have been greatly
benefited from his classes. I am especially
indebted to our Principal MR.Bharat Lal Meena
who has always been a source of encouragement
and support and without whose inspiration this
project would not have been a successful I would
like to place on record heartfelt thanks to him.
Finally, I would like to express my sincere
appreciation for all the other students for my
batch their friendship & the fine time that we all
shared together.
HARDWARE AND
SOFTWARE REQUIRED
HARDWARE
1. PC
2. MOBILE PHONE

SOFTWARE
1. PYTHON (latest version)
2. MYSQL
3. PYTHON-MYSQL CONNECTOR
Contents

Sl.
No. Topics
1 About hotel
2 Introduction

3 Python Codes
4 Mysql
5 Database

6 Output
References
HOTEL
A hotel is a commercial establishment that
provides lodging, accommodation, and other
services to travelers or tourists. Hotels typically
offer a range of rooms or suites 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 travelers 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 fforindividuals 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-to-
date information. The system also facilitates
quick check- ins and check-outs, enhancing the
overall gguest experience.
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.
PYTHON
CODES
# Insert booking record
ins = "INSERT INTO booking (Booking_ID, Room_Type, Guest_Name, Phone_number,
Room_Number, Check_In_Date, Check_Out_Date, Total_Days, Price)VALUES ({}, '{}', '{}', {}, {}, '{}', '{}',
{}, '{}')".format(b_id, e[1], guest_name, ph_no, ro_no, check_in_date, check_out_date, td1, pr)
y.execute(ins)
print("Room booked successfully! Room Number: ", ro_no)
return b_id
except:
print("Error")
finally:
a.commit()
#to book delux room
def book_delux_room():
a = mysql.connector.connect(host="localhost", user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
try:
z=random.randint(101, 111)
ro_no = z
g_name = input("Enter guest name: ")
ph_no = input("Enter your phone number: ")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date = input("Enter check-out date (YYYY-MM-DD):")
total_days_query = "SELECT DATEDIFF('{}', '{}')".format(out_date, in_date)
y.execute(total_days_query)
td1 = y.fetchone()[0]
pr = 15000 * td1
booking_id = book_room(g_name, ph_no,ro_no, in_date, out_date, td1, pr)
# Display booking history for the specific Booking_ID
if booking_id is not None:
q = "SELECT * FROM booking WHERE Booking_ID = {}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID {}: ".format(booking_id))
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))
except :
print("Error")

#to book double room


def book_double_room():
a = mysql.connector.connect(host="localhost", user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
try:
z=random.randint(201,211)
ro_no = z
g_name = input("Enter guest name: ")
ph_no = input("Enter your phone number: ")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date = input("Enter check-out date (YYYY-MM-DD):")
total_days_query = "SELECT DATEDIFF('{}', '{}')".format(out_date, in_date)
y.execute(total_days_query)
td1 = y.fetchone()[0]
pr = 25000 * td1
booking_id = book_room(g_name, ph_no,ro_no, in_date, out_date, td1, pr)
# Display booking history for the specific Booking_ID
if booking_id is not None:
q = "SELECT * FROM booking WHERE Booking_ID = {}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID {}: ".format(booking_id))
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))

except :
print("Error")

#to book king room


def book_king_room():
a = mysql.connector.connect(host="localhost",user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
try:
z=random.randint(301,311)
ro_no = z
g_name = input("Enter guest name: ")
ph_no = input("Enter your phone number: ")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date = input("Enter check-out date (YYYY-MM-DD):")
total_days_query = "SELECT DATEDIFF('{}', '{}')".format(out_date, in_date)
y.execute(total_days_query)
td1 = y.fetchone()[0]
pr = 40000 * td1
booking_id = book_room(g_name, ph_no,ro_no, in_date, out_date, td1, pr)

# Display booking history for the specific Booking_ID


if booking_id is not None:
q = "SELECT * FROM booking WHERE Booking_ID = {}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID {}: ".format(booking_id))
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))
except :
print("Error")

#to book balcony rooms


def book_balcony_room():
a = mysql.connector.connect(host="localhost", user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
try:
z=random.randint(401,411)
ro_no = z
g_name = input("Enter guest name: ")
ph_no = input("Enter your phone number: ")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date = input("Enter check-out date (YYYY-MM-DD):")
total_days_query = "SELECT DATEDIFF('{}', '{}')".format(out_date, in_date)
y.execute(total_days_query)
td1 = y.fetchone()[0]
pr = 45000 * td1
booking_id = book_room(g_name, ph_no,ro_no, in_date, out_date, td1, pr)
# Display booking history for the specific Booking_ID
if booking_id is not None:
q = "SELECT * FROM booking WHERE Booking_ID = {}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID {}: ".format(booking_id))
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))
except :
print("Error")

#to book cavana room


def book_cavana():
a = mysql.connector.connect(host="localhost",user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
try:
z=random.randint(501,506)
ro_no = z
g_name = input("Enter guest name: ")
ph_no = input("Enter your phone number: ")
in_date = input("Enter check-in date (YYYY-MM-DD): ")
out_date = input("Enter check-out date (YYYY-MM-DD):")
total_days_query = "SELECT DATEDIFF('{}', '{}')".format(out_date, in_date)
y.execute(total_days_query)
td1 = y.fetchone()[0]
pr = 90000 * td1
booking_id = book_room(g_name, ph_no,ro_no, in_date, out_date, td1, pr)
# Display booking history for the specific Booking_ID
if booking_id is not None:
q = "SELECT * FROM booking WHERE

Booking_ID = {}".format(booking_id)
y.execute(q)
print("\nBooking History for Booking_ID {}: ".format(booking_id))
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))
except :
print("Error")

#user choice
def bookings():
try:
a = mysql.connector.connect(host="localhost",user="root", password="admin",
database="hotel_sunset")
y = a.cursor()
z="select * from book_rooms"
y.execute(z)
x = y.fetchall()
columns = [i[0] for i in y.description]
print(tabulate(x, headers=columns, tablefmt="fancy_grid"))
roomchoice = int(input("Enter Your Option : "))
if roomchoice == 1:

book_delux_room()
elif roomchoice == 2:
book_double_room()
elif roomchoice == 3:
book_king_room()
elif roomchoice == 4:
book_balcony_room()
elif roomchoice == 5:
book_cavana()
else:
print("Sorry, May Be You Are Giving Me Wrong Input, Please Try Again !!! ")
except:
print("Error")
finally:
y.close()
a.close()

#gaming section
def gaming():
print("1. Table Tennis -----> 15000 Rs./HR")
print("2. Bowling -----> 10000 Rs./HR")
print("3. Snooker -----> 25000Rs./HR")
print("4. VR World Gaming -----> 40000 Rs./HR")
print("5. Video Games -----> 35000 Rs./HR")
print("6. Swimming Pool Games -----> 50000Rs./HR")
print("7. Exit")
game=int(input("Enter What Game You Want To Play : "))
hour=int(input("Enter No Of Hours You Want To Play : "))
if game==1:
print("YOU HAVE SELECTED TO PLAY : Table Tennis")
gamingbill = hour * 15000
price=print("Total price = ",gamingbill,"Rs.")
elif game==2:
print("YOU HAVE SELECTED TO PLAY : Bowling")
gamingbill = hour * 10000
price=print("Total price = ",gamingbill,"Rs.")
elif game==3:
print("YOU HAVE SELECTED TO PLAY : Snooker")
gamingbill = hour * 25000
price=print("Total price = ",gamingbill,"Rs.")
elif game==4:
print("YOU HAVE SELECTED TO PLAY : VR World Gaming")
gamingbill = hour * 40000
price=print("Total price = ",gamingbill,"Rs.")
elif game==5:
print("YOU HAVE SELECTED TO PLAY :Video Games")
gamingbill = hour * 35000
price=print("Total price = ",gamingbill,"Rs.")
elif game ==6:
print("YOU HAVE SELECTED TO PLAY : Swimming Pool Games")
gamingbill = hour *50000
price=print("Total price = ",gamingbill,"Rs.")
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")

#feedback to be asked by user


def feedback():
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()
x="insert into fdback values('{}','{}')".format(fdn,fdi)
y.execute(x)
print("\n\n")
print("THANKYOU FOR YOUR FEEDBACK")
print("\n")
print("YOU HAVE BEEN REDIRECTED TO THE MAIN PAGE")
a.commit()

#for admin
def admin_slot():
while True:
print("*********WELCOME ADMIN*********")
print("1.Employees Details")
print("2.Coustomer Details")
print("3.Room Details")
print("4.Feedback")
print("5.Restaurant Details")
print("6.Exit")
a=int(input("enter your choice"))
if a==1:
emp_details()
elif a==2:
customdet()
elif a==3:
room_details()
elif a==4:
fedback()
elif a==5:
restaurant_details()
elif a==6:
break
else:
print("\n\n","INVALID CHOICE","\n","TRY AGAIN")
#for customer
def customer_slot():
while True:
print("*************NAMASTE*************")
print("1.RESTAURANT") print("2.BOOK
ROOMS") print("3.GAMING")
print("4.FEEDBACK") print("5.EXIT")
a=int(input("enter your choice")) if a==1:

restaurant()
elif a==2:
bookings()
elif a==3:
gaming()
elif a==4:
feedback()
elif a==5:
break

else:
print("\n\n","INVALID CHOICE")

#first interface
while True:
print("*********WELCOME TO HOTEL SUNSET*********")
print("1.admin")
print("2.customer")
print("3.exit")
a=int(input("who are you"))
if a==1:
def admin_login(a, username, password):

a=mysql.connector.connect(host="localhost",user="root",password="admin",database="hotel_sunset")
y=a.cursor()
try:

# Check if the provided username and password match an admin record


query = "SELECT * FROM users WHERE username = %s AND password = %s"
y.execute(query, (username, password))
admin_result = y.fetchone()
if admin_result:
print("Login successful. Welcome, Admin!")
else:
print("Invalid username or password. Please try again.")
except Exception as e:
print(f"Error: {e}")
a.close()
admin_username = input("Enter Admin Username: ")
admin_password = input("Enter Admin Password: ")
admin_login(a, admin_username, admin_password)
admin_slot()
elif a==2:
customer_slot()
elifbreak
a==3:
MYSQL
DATABASE
 All tables used:-

 Describing all tables:-


1. Booking:

2.Employees:
3.Feedback:

4.Menu:

5.Orders:
6. Rooms:

7. Room Details:

8. Users:
OUTPUTS
 First interface with admin login:

 Customer login:

 From restaurant view menu:


 Order an item:

 View order:

 Canceling an order:

 Feedback of restaurant:
 Book a room:

 Gaming:

 Feedback for hotel:


 Viewing employee details:

 Viewing customer details:

 Viewing room details:


 Showing vacant rooms:

 Showing booked rooms:


 Viewing feedbacks from both hotel and restaurant:

 Viewing restaurant details:


References
 Class 12 CS Sumita Arora
 book Class 11 CS Sumita
 Arora book Mysql Python
IDLE

THANK
YOU

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy