Panchsheel Public School: Computer Science Project
Panchsheel Public School: Computer Science Project
Panchsheel Public School: Computer Science Project
school
Hotel Management
: By Pratham Kumar
Certificate
This is to certify that “Pratham kumar”
student of class 12th has successfully
completed the python project on the
topic “Hotel management” under the
guidance of Mrs. Anjali.
This project is absolutely genuine
and does not indulge in plagiarism of
any kind. The reference taken in
making this project have been
declared at the end of this project.
Signature(Subject Teacher) –
Signature(Examiner) –
Contents
Acknowledgement
Introduction
About the programming language.
Libraries, modules and functions
used in this project.
Source code and Screenshots of
the project.
Bibliography
Acknowledgement
I would like to thank my computer
science teacher Mrs. Anjali malkoti
for her constant guidance, motivation
and sympathetic attitude towards the
success of this project.
Introduction
This Project on Hotel Management is
a general software developed (using
Python) to simplify hotel operations
by automating them. In this project,
“High Sky ” is the project’s hotel
name. It covers major aspects of
hotel management; it could perform
the following operations- Hotel
Booking, Provide you with Hotel
Rooms Info, Room Service, Billing
and Record-Keeping. This can help
the hotel employees to easily do their
work without major function the just
used to type small things to book
rooms order food and see the record
using simple function and values like
room number etc. This program can
help the hotel employee to do the
work faster so that the can serve their
service to the customer easily and
safely so that customer cant face any
problems regarding it.
i = 0
# Home Function
def Home():
print("\t\t\t\t\t\t WELCOME TO HOTEL
High Sky\n")
print("\t\t\t 1 Booking\n")
print("\t\t\t 2 Rooms Info\n")
print("\t\t\t 3 Room Service(Menu Card)\
n")
print("\t\t\t 4 Payment\n")
print("\t\t\t 5 Record\n")
print("\t\t\t 0 Exit\n")
ch = int(input("->"))
if ch == 1:
print(" ")
Booking()
elif ch == 2:
print(" ")
Rooms_Info()
elif ch == 3:
print(" ")
restaurant()
elif ch == 4:
print(" ")
Payment()
elif ch == 5:
print(" ")
Record()
else:
exit()
def date(c):
if c[2] >= 2019 and c[2] <= 2020:
else:
print("Invalid date\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
else:
print("Invalid date\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
else:
print("Invalid date\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
else:
print("Invalid date\n")
name.pop(i)
phno.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
# Booking fucntion
def Booking():
# used global keyword to
# use global variable 'i'
global i
print(" BOOKING ROOMS")
print(" ")
while 1:
n = str(input("Name: "))
p1 = str(input("Phone No.: "))
a = str(input("Address: "))
else:
print("\tName, Phone no. & Address
cannot be empty..!!")
print("\n\tErr..!!\n\tCheck-Out date
must fall after Check-In\n")
name.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
elif co[1] == ci[1] and co[2] >= ci[2] and
co[0] <= ci[0]:
print("\n\tErr..!!\n\tCheck-Out date
must fall after Check-In\n")
name.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
else:
pass
date(co)
d1 = datetime.datetime(ci[2], ci[1], ci[0])
d2 = datetime.datetime(co[2], co[1], co[0])
d = (d2 - d1).days
day.append(d)
rc.append(0)
p.append(0)
if p1 not in phno:
phno.append(p1)
elif p1 in phno:
for n in range(0, i):
if p1 == phno[n]:
if p[n] == 1:
phno.append(p1)
elif p1 in phno:
for n in range(0, i):
if p1 == phno[n]:
if p[n] == 0:
print("\tPhone no. already
exists and payment yet not done..!!")
name.pop(i)
add.pop(i)
checkin.pop(i)
checkout.pop(i)
Booking()
print("")
print("\t\t\t***ROOM BOOKED SUCCESSFULLY***\
n")
print("Room No. - ", rn)
print("Customer Id - ", cid)
roomno.append(rn)
custid.append(cid)
i = i + 1
n = int(input("0-BACK\n ->"))
if n == 0:
Home()
else:
exit()
# ROOMS INFO
def Rooms_Info():
print(" ------ HOTEL ROOMS INFO
------")
print("")
print("STANDARD NON-AC")
print("-----------------------------------------
----------------------")
print("Room amenities include: 1 Double Bed,
Television, Telephone,")
print("Double-Door Cupboard, 1 Coffee table
with 2 sofa, Balcony and")
print("an attached washroom with hot/cold
water.\n")
print("STANDARD NON-AC")
print("-----------------------------------------
----------------------")
print("Room amenities include: 1 Double Bed,
Television, Telephone,")
print("Double-Door Cupboard, 1 Coffee table
with 2 sofa, Balcony and")
print("an attached washroom with hot/cold
water + Window/Split AC.\n")
print("3-Bed NON-AC")
print("-----------------------------------------
----------------------")
print("Room amenities include: 1 Double Bed
+ 1 Single Bed, Television,")
print("Telephone, a Triple-Door Cupboard, 1
Coffee table with 2 sofa, 1")
print("Side table, Balcony with an Accent
table with 2 Chair and an")
print("attached washroom with hot/cold
water.\n")
print("3-Bed AC")
print("-----------------------------------------
----------------------")
print("Room amenities include: 1 Double Bed
+ 1 Single Bed, Television,")
print("Telephone, a Triple-Door Cupboard, 1
Coffee table with 2 sofa, ")
print("1 Side table, Balcony with an Accent
table with 2 Chair and an")
print("attached washroom with hot/cold water
+ Window/Split AC.\n\n")
print()
n = int(input("0-BACK\n ->"))
if n == 0:
Home()
else:
exit()
# RESTAURANT FUNCTION
def restaurant():
ph = int(input("Customer Id: "))
global i
f = 0
r = 0
for n in range(0, i):
if custid[n] == ph and p[n] == 0:
f = 1
print("-----------------------------------------
--------------------------------")
print("
Hotel High Sky")
print("-----------------------------------------
--------------------------------")
print("
Menu Card")
print("-----------------------------------------
--------------------------------")
print("\n BEVARAGES
26 Dal Fry................ 140.00")
print("----------------------------------
27 Dal Makhani............ 150.00")
print(" 1 Regular Tea.............
20.00 28 Dal Tadka.............. 150.00")
print(" 2 Masala Tea..............
25.00")
print(" 3 Coffee..................
25.00 ROTI")
print(" 4 Cold Drink..............
25.00 ----------------------------------")
print(" 5 Bread Butter............
30.00 29 Plain Roti.............. 15.00")
print(" 6 Bread Jam...............
30.00 30 Butter Roti............. 15.00")
print(" 7 Veg. Sandwich...........
50.00 31 Tandoori Roti........... 20.00")
print(" 8 Veg. Toast Sandwich.....
50.00 32 Butter Naan............. 20.00")
print(" 9 Cheese Toast Sandwich...
70.00")
print(" 10 Grilled Sandwich........
70.00 RICE")
print("
----------------------------------")
print(" SOUPS
33 Plain Rice.............. 90.00")
print("----------------------------------
34 Jeera Rice.............. 90.00")
print(" 11 Tomato Soup............
110.00 35 Veg Pulao.............. 110.00")
print(" 12 Hot & Sour.............
110.00 36 Peas Pulao............. 110.00")
print(" 13 Veg. Noodle Soup.......
110.00")
print(" 14 Sweet Corn.............
110.00 SOUTH INDIAN")
print(" 15 Veg. Munchow...........
110.00 ----------------------------------")
print("
37 Plain Dosa............. 100.00")
print(" MAIN COURSE
38 Onion Dosa............. 110.00")
print("----------------------------------
39 Masala Dosa............ 130.00")
print(" 16 Shahi Paneer...........
110.00 40 Paneer Dosa............ 130.00")
print(" 17 Kadai Paneer...........
110.00 41 Rice Idli.............. 130.00")
print(" 18 Handi Paneer...........
120.00 42 Sambhar Vada........... 140.00")
print(" 19 Palak Paneer...........
120.00")
print(" 20 Chilli Paneer..........
140.00 ICE CREAM")
print(" 21 Matar Mushroom.........
140.00 ----------------------------------")
print(" 22 Mix Veg................
140.00 43 Vanilla................. 60.00")
print(" 23 Jeera Aloo.............
140.00 44 Strawberry.............. 60.00")
print(" 24 Malai Kofta............
140.00 45 Pineapple............... 60.00")
print(" 25 Aloo Matar.............
140.00 46 Butter Scotch........... 60.00")
print("Press 0 -to end ")
ch = 1
while (ch != 0):
# if-elif-conditions to assign
item
# prices listed in menu card
if ch == 1 or ch == 31 or ch ==
32:
rs = 20
r = r + rs
elif ch <= 4 and ch >= 2:
rs = 25
r = r + rs
elif ch <= 6 and ch >= 5:
rs = 30
r = r + rs
elif ch <= 8 and ch >= 7:
rs = 50
r = r + rs
elif ch <= 10 and ch >= 9:
rs = 70
r = r + rs
elif (ch <= 17 and ch >= 11) or
ch == 35 or ch == 36 or ch == 38:
rs = 110
r = r + rs
elif ch <= 19 and ch >= 18:
rs = 120
r = r + rs
elif (ch <= 26 and ch >= 20) or
ch == 42:
rs = 140
r = r + rs
elif ch <= 28 and ch >= 27:
rs = 150
r = r + rs
elif ch <= 30 and ch >= 29:
rs = 15
r = r + rs
elif ch == 33 or ch == 34:
rs = 90
r = r + rs
elif ch == 37:
rs = 100
r = r + rs
elif ch <= 41 and ch >= 39:
rs = 130
r = r + rs
elif ch <= 46 and ch >= 43:
rs = 60
r = r + rs
elif ch == 0:
pass
else:
print("Wrong Choice..!!")
print("Total Bill: ", r)
# PAYMENT FUNCTION
def Payment():
ph = str(input("Phone Number: "))
global i
f = 0
# checks if payment is
# not already done
if p[n] == 0:
f = 1
print(" Payment")
print("
--------------------------------")
print(" MODE OF PAYMENT")
if ch == 'y' or ch == 'Y':
print("\n\n
--------------------------------")
print(" Hotel High
Sky")
print("
--------------------------------")
print(" Bill")
print("
--------------------------------")
print(" Name: ", name[n], "\
t\n Phone No.: ", phno[n], "\t\n Address: ",
add[n], "\t")
print("\n Check-In: ",
checkin[n], "\t\n Check-Out: ", checkout[n], "\
t")
print("\n Room Type: ",
room[n], "\t\n Room Charges: ", price[n] *
day[n], "\t")
print(" Restaurant
Charges: \t", rc[n])
print("
--------------------------------")
print("\n Total Amount: ",
(price[n] * day[n]) + rc[n], "\t")
print("
--------------------------------")
print(" Thank You")
print(" Visit Again
:)")
print("
--------------------------------\n")
p.pop(n)
p.insert(n, 1)
else:
else:
f = 1
print("\n\tPayment
has been Made :)\n\n")
if f == 0:
print("Invalid Customer Id")
n = int(input("0-BACK\n ->"))
if n == 0:
Home()
else:
exit()
# RECORD FUNCTION
def Record():
# checks if any record exists or not
if phno != []:
print(" *** HOTEL RECORD ***\n")
print("| Name | Phone No. |
Address | Check-In | Check-Out | Room
Type | Price |")
print(
"-----------------------------------------------
------------------------------------------------
-----------------------")
print(
"-----------------------------------------------
------------------------------------------------
-----------------------")
else:
print("No Records Found")
n = int(input("0-BACK\n ->"))
if n == 0:
Home()
else:
exit()
# Driver Code
Home()
Output
Bibliography