CS Final Project - Debasish Khatei
CS Final Project - Debasish Khatei
CS Final Project - Debasish Khatei
Malkangiri
COMPUTER SCIENCE
FINAL PROJECT
Topic : Hotel
Management System
NAME : DEBASISH KHATEI
CLASS : XII
ROLL NO : 34
GUIDED BY : MRS. ASHRITA PANDA
SCHOOL : KV MKG
submitted to principal`s
: mrs. ashrita panda signature
CERTIFICATE
This is certified that the project conducted have been
satisfactorily performed by DEBASISH KHATEI, a
student Studying in KENDRIYA VIDYALAYA
MALKANGIRI, ODISHA - Class XII ; Roll No : 34 During
The Academic Year 2022-23
teacher's principal`s
signature signature
ACKNOWLEDGEMENT
I Wish to express my deep gratitude and sincere
thanks to principal MR. IQRAR AHMAD, K.V.S Malkangiri
for his encouragement and for all the facilities that he
provided for this project work. I sincerely appreciate
the magnanimity by taking me into his fold for which i
shall remain indebted to him.
PYTHON FEATURES
Python`s Features include -
Easy To Learn -
Python has few keywords, simple structure, and a
clearly defined syntax. This allows the student to pick
up the language quickly.
Easy to read -
Python Code is more clearly defined and
visible to the eyes.
print("____________________________________________________________
________________________")
print (" WELCOME TO")
print(" MOHAN INTERNATIONAL")
print("____________________________________________________________
________________________")
while True:
def registercust():
L=[]
name=input ("ENTER YOUR NAME: ")
L.append(name)
addr=input ("ENTER YOUR ADDRESS:")
L.append(addr)
indate=input ("ENTER YOUR CHECK IN DATE:")
L.append(indate)
outdate=input("ENTER YOUR CHECK OUT DATE:")
L.append(outdate)
cust=(L)
sql="insert into
custdata (custname, addr, indate, outdate) values (%s, %s, %s, %s)"
mycursor.execute (sql, cust)
mydb.commit()
print("THANK YOU")
def roomtypeview():
sql="select from roomtype"
mycursor.execute(sql)
rows= mycursor.fetchall()
for x in rows:
print (x)
print ("THANK YOU")
def roomrent():
print ("WE HAVE FOLLOWING ROOMS FOR YOU:-")
print ("TYPE A---->Rs. 1000 PN\[1]")
print ("TYPE B---->Rs. 2000 PN\-----[2]")
print ("TYPE C---->Rs. 3000 PN\-----[3]")
print ("TYPE D---->Rs. 4000 PN\-----[4]")
x=int (input("ENTER YOUR CHOICE PLEASE->")
n=int (input("For HOW MANY NIGHTS DO YOU WANT TO STAY:")
if(x==1)
print("YOU HAVE OPTED FOR ROOM TYPE A")
s=1000*n
elif (x==2) :
print("YOU HAVE OPTED FOR ROOM TYPE B")
s=2000*n
elif (x==3) :
print("YOU HAVE OPTED FOR ROOM TYPE C")
s=3000*n
elif (x==4) :
print("YOU HAVE OPTED FOR ROOM TYPE D")
s=4000*n
else:
print ("PLEASE CHOOSE YOUR ROOM")
print ("YOUR ROOM RENT IS =",S,"\n")
import getpass
print(" PAYMENT")
print("YOU WANT TO PAY WITH:")
print ("1. DEBIT CARD")
print("2. CREDIT CARD")
ctype=input ("ENTER CARD TYPE (1/2):")
card=input ("ENTER YOUR CARD NO.:")
passwd=input ("ENTER YOUR PASSWORD: ")
print("CONNECTING...")
print("PAYMENT SUCCESSFUL")
print("______________________________________________________
___________")
mycursor.execute("select now()")
N=mycursor.fetchall()
N=N[0][0]
N=str (N).split()
print(" _BILL_")
print ("YOUR ACCOUNT IS DEBITED WITH Rs.", s, "ON", N[0], "AT", N[1])
print ("THANK YOU")
def restaurantmenuview():
sql="select from restaurant"
mycursor.execute(sql)
rows mycursor.fetchall()
for x in rows:
print (x)
print ("THANK YOU")
def orderitem():
global s
sql="select from restaurant"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows: print (x)
print (x)
d=int (input("ENTER YOUR CHOICE:"))
if (d==1):
print ("YOU HAVE ORDERED FOR TEA")
a=int (input("ENTER QUANTITY:"))
s=10*a
print( "YOUR AMOUNT FOR TEA IS : Rs.",s,"\n")
elif (d==2):
print( "YOU HAVE ORDERED FOR COFFEE")
a=int(input("ENTER QUANTITY:"))
s=10*a
print("YOUR AMOUNT FOR COFFEE IS : Rs.",s,"\n")
elif (d==3):
print( "YOU HAVE ORDERED FOR COLD DRINK")
a=int(input("ENTER QUANTITY:"))
s=20*a
print("YOUR AMOUNT FOR COLD DRINK IS : Rs.",s,"\n")
elif (d==4):
print( "YOU HAVE ORDERED FOR SAMOSA")
a=int(input("ENTER QUANTITY:"))
s=10*a
print("YOUR AMOUNT FOR SAMOSA IS : Rs.",s,"\n")
elif (d==5):
print( "YOU HAVE ORDERED FOR SANDWICH")
a=int(input("ENTER QUANTITY:"))
s=50*a
print("YOUR AMOUNT FOR SANDWICH IS : Rs.",s,"\n")
elif (d==6):
print( "YOU HAVE ORDERED FOR DOSA")
a=int(input("ENTER QUANTITY:"))
s=30*a
print("YOUR AMOUNT FOR DOSA IS : Rs.",s,"\n")
elif (d==7):
print( "YOU HAVE ORDERED FOR VADA")
a=int(input("ENTER QUANTITY:"))
s=10*a
print("YOUR AMOUNT FOR VADA IS : Rs.",s,"\n")
elif (d==8):
print( "YOU HAVE ORDERED FOR MILK")
a=int(input("ENTER QUANTITY:"))
s=20*a
print("YOUR AMOUNT FOR MILK IS : Rs.",s,"\n")
elif (d==9):
print( "YOU HAVE ORDERED FOR NOODLES")
a=int(input("ENTER QUANTITY:"))
s=50*a
print("YOUR AMOUNT FOR NOODLES IS : Rs.",s,"\n")
elif (d==10):
print( "YOU HAVE ORDERED FOR PASTA")
a=int(input("ENTER QUANTITY:"))
s=50*a
print("YOUR AMOUNT FOR PASTA IS : Rs.",s,"\n")
else :
print("PLEASE ENTER YOUR CHOICE FROM THE MENU")
print("THANK YOU")
def laundrybill():
global z
sql="select*from laundry"
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows :
print(x)
y=int (input("ENTER YOUR NUMBER OF CLOTHES:")
z=y*10
print("YOUR LAUNDRY BILL : Rs.",z,"\n")
print("THANK YOU")
return z
def viewbill () :
a=input("ENTER YOUR NAME:")
print("CUSTOMER NAME :",a,"\n")
print("LAUNDRY BILL :",z)
print("RESTAURANT BILL :",s)
print("TOTAL AMOUNT:",z+s)
print("THANK YOU")
def Menuset () :
print("ENTER CUSTOMER DATA _______[1]")
print("VIEW ROOMTYPE____________[2]")
print("BOOK A ROOM______________[3]")
print("VIEW RESTAURANT MENU______[4]")
print("ORDER FOOD_______________[5]")
print("LAUNDRY_________________[6]")
print("COMPLETE BILL ____________[7]")
print("EXIT ____________________[8]")
Menuset ()
try:
userinput=int(input("PLEASE SELECT AN ABOVE OPTION:"))
except ValueError:
continue
if (userinput==1):
registercust()
elif (userinput==2):
roomtypeview()
elif (userinput==3):
roomrent()
elif (userinput==4):
restaurantmenuview()
elif (userinput==5):
orderitem()
elif (userinput==6):
laundrybill()
elif (userinput==7):
viewbill()
elif (userinput==8):
break
else:
print ("INVALID INPUT !!!")
print ("PLEASE TRY AGAIN")
continue
ask=input ("DO AGAIN? (Y/N):") .upper()
if ask=='N':
break
print("THANKS")
print("WE HOPE YOU ENJOYED OUR SERVICES")
print ("VISIT AGAIN")
print("_________________________________________________
________________________")
print(" MOHAN INTERNATIONAL")
print("_________________________________________________
_________________________")
mydb.close()
OUTPUT SCREENSHOTS :
WELCOME TO
MOHAN INTERNATIONAL
------------------------------------------------------------------------------------------------
_BILL_
YOUR ACCOUNT IS DEBITED WITH Rs. 24000 ON 2019-10-14 AT 11:02:19 \
THANK YOU
DO AGAIN? (Y/N): Y
ENTER CUSTOMER DATA-------------[1]
VIEW ROOMTYPE----------------------[2]
BOOK A ROOM-------------------------[3]
VIEW RESTAURANT MENU-----------[4]
ORDER FOOD---------------------------[5]
LAUNDRY-------------------------------[6]
COMPLETE BILL------------------------[7]
EXIT--------------------------------------[8]
PLEASE SELECT AN ABOVE OPTION :4
(1, 'TEA', 10)
(2, 'COFFEE', 10)
(3, 'COLD DRINK', 20)
(4. 'SAMOSA, 10)
(5, 'SANDWICH', 50)
(6, 'DOSA', 60)
(7, 'VADA', 10)
(8, 'MILK', 20)
(9, 'NOODLES, 50)
(10, 'PASTA', 50)
THANK YOU
DO AGAIN? (Y/N): Y
ENTER CUSTOMER DATA------------[1]
VIEW ROOMTYPE---------------------[2]
BOOK A ROOM------------------------[3]
VIEW RESTAURANT MENU----------[4]
ORDER FOOD--------------------------[5]
LAUNDRY------------------------------[6]
COMPLETE BILL-----------------------[7]
EXIT-------------------------------------[8]
PLEASE SELECT AN ABOVE OPTION :5
(1, 'TEA', 10)
(2, 'COFFEE', 10)
(3, 'COLD DRINK', 20)
(4, 'SAMOSA', 10)
(5, 'SANDWICH', 50)
(6, 'DOSA', 60)
(6, 'DOSA', 60)
(7, 'VADA', 10)
(8, 'MILK', 20)
(9, 'NOODLES', 50)
(10, 'PASTA', 50)
ENTER YOUR CHOICE : 5
YOU HAVE ORDERED FOR SANDWICH
ENTER QUANTITY:2
YOUR AMOUNT FOR SANDWICH IS Rs. 100
THANK YOU
DO AGAIN? (Y/N):Y
ENTER CUSTOMER DATA-------------[1]
VIEW ROOMTYPE----------------------[2]
BOOK A ROOM-------------------------[3]
VIEW RESTAURANT MENU-----------[4]
ORDER FOOD---------------------------[5]
LAUNDRY-------------------------------[6]
COMPLETE BILL------------------------[7]
EXIT--------------------------------------[8]
PLEASE SELECT AN ABOVE OPTION : 6
(1, 'SHIRT', 10)
(2, 'PANT', 10)
(3. 'SUIT', 10)
(4, 'SAARI', 10)
ENTER YOUR NUMBER OF CLOTHES :4
YOUR LAUNDRY BILL: Rs. 40
THANK YOU
DO AGAIN? (Y/N): Y
ENTER CUSTOMER DATA-------------[1]
VIEW ROOMTYPE----------------------[2]
BOOK A ROOM-------------------------[3]
VIEW RESTAURANT MENU-----------[4]
ORDER FOOD---------------------------[5]
LAUNDRY-------------------------------[6]
COMPLETE BILL------------------------[7]
EXIT------------------------------------- [8]
PLEASE SELECT AN ABOVE OPTION :7
ENTER YOUR NAME :BIBHU
CUSTOMER NAME: BIBHU
LAUNDRY BILL: 40
RESTAURANT BILL: 100
TOTAL AMOUNT: 140
THANK YOU
DO AGAIN? (Y/N):N
THANKS
WE HOPE YOU ENJOYED OUR SERVICES
VISIT AGAIN
MOHAN INTERNATIONAL
CONCLUSION
We can hereby conclude that :
The system effecytively automated the functions
involved in the processes being handled manually
before.
The cost and benefit analysis shows that the
system was quite successful in saving costs and
generate benefits.
The system is secure & scalable
The system design has been done keeping user-
friendliness and efficiency in mind.
SCOPE OF THE
PROJECT :
Scope of the project is to replace the manual work of
hotel management with the new computerized system.
User does not need much training to use this software,
as this software is very user friendly and easy to use. It
replaces all the paper work also. In this software, we
can store thousands of records. It replaces all the
calculation works also as it calculates and print the
bills. Some advantages are:
If any invalid entry done by the users which is
nature of human being, it gives the error message
to the users to enter valid input.
BIBILOGRAPHY
https://www.python.org
https://www.mysql.com
https://pythontrends.wordpress.com
Computer Science with Python by Sumita Arora
Python Essential Reference by David M. Beazley
Learning Python by Mark Lutz
www.google.com and www.scribd.com
thank
YOU!