Computer Science Pr
Computer Science Pr
PROJECT WORK
IN
COMPUTER SCIENCE (083)
HOTEL MANAGEMENT SYSTEM
1|Page
ACKNOWLEDGEMENT
PLACE: Sulur
DATE:
2|Page
CERTIFICATE
_____________________ _____________________
INTERNAL EXAMINER EXTERNAL EXAMINER
____________________
PRINCIPAL
3|Page
DECLARATION
4|Page
INDEX
1. SYNOPSIS 6
3. OVERVIEW OF MYSQL 9
6. OUTPUT 19 – 34
7. BIBLIOGRAPHY 35
5|Page
SYNOPSIS
6|Page
OVERVIEW OF PYTHON
7|Page
Can also be embedded into an application to provide a
programmable interface,
Runs anywhere, including Mac OS X, Windows, Linux, and Unix,
with unofficial builds also available for Android and iOS.
Is free software in two senses. It does not cost anything to
download or use Python, or to include it in your application.
Python can also be freely modified and re-distributed because
while the language is Copyrighted it is available under an open-
source license.
8|Page
OVERVIEW ON MYSQL
9|Page
HARDWARE AND SOFTWARE REQUIREMENTS
10 | P a g e
SOURCE
CODE
11 | P a g e
SOURCE CODE
import time
import mysql.connector
database="hotel_management")
cursor = connect.cursor()
cursor.execute(query1)
def check_out(room_no):
try:
cursor.execute(delete_query,(room_no,))
connect.commit()
12 | P a g e
finally:
cursor.close()
def book_a_room():
email=input("Email id : - ")
address=input("Address : - ")
room_no=int(input("room no : - "))
cursor.execute(query,data)
connect.commit()
print("BOOKING SUCCESFULL")
# hotel status
def hotel_status():
print("""
13 | P a g e
OTHERWISE SPECIAL ENTRY
THANK YOU
VISIT AGAIN""")
def after_login():
print("""
=======================================
=======================================
=======================================
|| 1 . BOOK A ROOM ||
=======================================
|| 2 . CHECK OUT ||
=======================================
|| 3 . HOTEL STATUS ||
=======================================
|| 4 . PAYMENT INFO ||
=======================================
|| 5 . CONTACT ||
14 | P a g e
=======================================
======================================""")
# billing function
def payment_info():
name=input("Enter name:")
cursor.execute(query,(name,))
result=cursor.fetchone()
if result:
number_of_days = result[0]
print("No of days",number_of_days )
bill=number_of_days * 2000
else:
# CONTACT FUNCTION
15 | P a g e
def contact():
print("""
==================================================
==================================================
| 1 . EMAIL - Aaurahotel911@gmail.com |
==================================================
==================================================
==================================================
==================================================
| THANK YOU |
==================================================""")
def room_data():
16 | P a g e
# creating optional function
def first_option():
if option==1:
book_a_room()
if option==2:
check_out(room_to_check_out)
if option==3:
hotel_status()
if option==4:
payment_info()
if option==5:
contact()
if option==6:
room_data()
while True:
if login == "123":
17 | P a g e
line = "Logging in, please wait..."
words = line.split()
time.sleep(0.5)
after_login()
first_option()
else:
def room_data():
18 | P a g e
OUTPUT
19 | P a g e
PYTHON AND MYSQL
LOGIN SCREEN:
20 | P a g e
MAIN SCREEN:
21 | P a g e
ROOM BOOKING SCREEN:
1.
22 | P a g e
2.
23 | P a g e
3.
24 | P a g e
4.
25 | P a g e
5.
26 | P a g e
HOTEL STATUS SCREEN:
27 | P a g e
CONTACT DETAILS OF HOTEL:
28 | P a g e
VIEW ROOM DETAILS SCREEN:
29 | P a g e
DATABASE TABLE:
30 | P a g e
CHECK OUT ROOM SCREEN:
1.
31 | P a g e
DATABASE OUTPUT:
2.
32 | P a g e
VIEW ROOM DETAILS SCREEN:
33 | P a g e
DATABASE OUTPUT:
34 | P a g e
BIBLIOGRAPHY
Github.com
Geeksforgeeks.com
Stackoverflow.com
Reddit.com
freeCodeCamp.com
Chat.openai.com
w3schools.com
35 | P a g e