Nikhil Ip
Nikhil Ip
VIDYALAYA
KORAPUT
A PROJECT REPORT ON
HOTEL MANAGEMENT SYSTEM
FOR
AISSCE 2024-25 EXAMINATION
CERTIFICATE
This is to certify that NIKHIL DHRUW has
successfully completed the project on HOTEL
MANAGEMENT SYSTEM under my
guidance and supervision.
ACKNOWLEDGEMENT
We would like to express our special thanks of
gratitude to our teacher Mr. Saquib Alam who
gave us the golden opportunity to do this
wonderful project of “INFORMATICS
PRACTICES”, who also helped us in
completing our project. We came to know
about so many new things we really thankful
to them. Secondly we would also like to thank
our parents and friends who helped us a lot in
finalizing this project within the limited time
frame.
NIKHIL DHRUW
XII ‘B’
CONTENT
1. Introduction of the project
2. System Requirements of the
project
3. Python coding
4. Output of the Project
5. References
Introduction of the project
We the students of CLASS XII B of PM SHRI KENDRIYA
VIDYALAYA KORAPUT have been assigned the work of HOTEL
MANAGEMENT SYSTEM.
We are so glad that this work have been assigned to us, yet we
haven’t done this work before . SHRI. Saquib Alam our subject
teacher have also helped us a lot to complete this project. We feel
so blessed that we have learnt all this work with the help of our sir,
we are also thankful to our respected principal SHRI. Saroj Kumar
Das for providing us various facilities to complete this project.
PROCESS
FIRSTLY, we have done the planning in a paper work regarding
what have to do on the assigned project HOTEL MANAGEMENT
SYSTEM.
import mysql.connector
myConnnection =""
cursor=""
userName=""
password =""
roomrent =0
restaurentbill=0
gamingbill=0 fashionbill=0
totalAmount=0
cid=""
global myConnection
myConnection=mysql.connector.connect(host="localhost",user=userName,passwd=password
, auth_plugin='mysql_native_password' ) if myConnection:
cursor=myConnection.cursor()
cursor.execute("CREATE DATABASE IF NOT EXISTS HMS")
cursor.execute("COMMIT")
cursor.close()
return myConnection
else:
def MYSQLconnection ()
global userName
myConnection
global cid
myConnection=mysql.connector.connect(host="localhost",user=userName,passwd=password ,
database="HMS" , auth_plugin='mysql_native_password' )
if myConnection:
return myConnection
else:
myConnection.close()
def userEntry():
global cid
if myConnection:
cursor=myConnection.cursor(
")
(cid,name,address,age,nationality,phoneno,email)
cursor.execute(sql,values)
cursor.execute("COMMIT")
cursor.close()
else:
def bookingRecord():
global cid
customer=searchCustomer()
if customer:
if myConnection:
cursor=myConnection.cursor()
cursor.execute(createTable)
values= (cid,checkin,checkout)
cursor.execute(sql,values)
cursor.execute("COMMIT")
cursor.close()
else:
def roomRent():
global cid
customer=searchCustomer()
if customer:
global roomrent
if myConnection:
cursor=myConnection.cursor()
cursor.execute(createTable)
print ("\n ##### We have The Following Rooms For You #####")
roomchoice==1:
roomchoice==2:
roomrent=noofdays*5000
roomchoice==3:
roomrent = noofdays * 3500
roomchoice==4:
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")
return
values= (cid,roomchoice,noofdays,roomno,roomrent,)
cursor.execute(sql,values)
cursor.execute("COMMIT")
print("Thank You , Your Room Has Been Booked For : ",noofdays , "Days"
else:
def Restaurent():
global cid
customer=searchCustomer()
if customer:
global restaurentbill
if myConnection:
cursor=myConnection.curs
or(
"""
choice_dish==1:
elif choice_dish==2:
elif choice_dish==3:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!!
cursor.execute("COMMIT")
cursor.close()
else:
print("\nERROR
ESTABLISHING MYSQL
CONNECTION !")
customer=searchCustomer()
if customer:
global gamingbill
if myConnection:
cursor=myConnection.cursor()
print("""
7. Exit
""")
print("\n\n#################################################")
if game==1:
elif game==2:
elif game==5:
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")
return
print("FOR : ",hour," HOURS","\n *** WE HOPE YOU WILL ENJOY YOUR GAME
***") print("\n\n#################################################")
cursor.close()
else:
def Fashion():
global cid
customer=searchCustomer()
if customer:
global fashionbill
if myConnection:
cursor=myConnection.cursor()
cursor.execute(createTable)
print(""" 1. Shirts -
""")
if dress==1:
print("\nShirts")
elif dress==2:
print("\nT-Shirts")
elif dress==3:
print("\nPants") fashionbill
= quantity * 2000
elif dress==4:
print("\nJeans") fashionbill
dress==5:
print("\nTassel top")
elif dress==6:
print("\nGown") fashionbill =
print("\nWestern dress")
elif dress==8:
print("\nSkirts")
dress==9:
print("\nTrousers")
dress==10:
print("\nInnerWear")
fashionbill = quantity * 30
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")
return
cursor.execute("COMMIT")
print("\n\n#################################################")
print("\n\n#################################################")
cursor.close()
else:
def totalAmount():
global cid
customer=searchCustomer()
if customer:
global grandTotal
global roomrent
global restaurentbill
global fashionbill
global gamingbill if
myConnection:
cursor=myConnection.cursor()
values= (cid,name,roomrent,restaurentbill ,
gamingbill,fashionbill,grandTotal) cursor.execute(sql,values)
cursor.execute("COMMIT")
cursor.close()
print("___________________________________________________")
searchOldBill():
global cid
customer=searchCustomer()
if customer: if
myConnection:
cursor=myConnection.cursor()
cursor.execute(sql,(cid,))
data=cursor.fetchall()
if data:
print(data)
else:
print("Record Not Found Try Again
def searchCustomer():
global cid
if myConnection:
cursor=myConnection.cursor()
cursor.execute(sql,(cid,))
data=cursor.fetchall()
if data:
print(data)
return True
else:
return False
cursor.close()
else:
print("""
""")
myConnection = MYSQLconnectionCheck ()
if myConnection: MYSQLconnection ()
while(True):
print("""
2--->Booking Record
10--->EXIT """)
if choice == 1:
userEntry()
bookingRecord()
roomRent()
Restaurent()
Gaming()
Fashion()
searchCustomer()
totalAmount() elif
choice ==9:
searchOldBill()
# END OF PROJECT
MAIN SCREEN
USER AUTHENTICATION
CUSTOMER DETAILS
CUSTOMER BOOKING RECORDS
ROOM RENT
T
RESTAURENT BILL
GAMING BILL
FASHION STORE BILL
DETAILS OF THE CUSTOMER
TOTAL BILL
OLD BILL
EXIT
MYSQL DATABASE AND TABLES
USED IN THIS PROJECT
DATABASE
REFERENCES
1. Code Academy
2. PythonChallenge.com
3. LearnPython.org
4. tutorialsPoint.com
5. python.org