Ip Project Hotel Management Class12
Ip Project Hotel Management Class12
Ip Project Hotel Management Class12
PRACTICES
Project Report
On
“ Hotel Management ”
Submitted to the partial fulfillment of the requirements for
the award of the Class XII of CBSE prescribed
to
Central Board of Secondary Education
By
UDAY
[Roll. No: ]
Certificate
This is to certify that, this is the bonafied record of project work done in
the Informatics Practices(065) Laboratory during the academic year 2023
to 2024 by Mr. UDAY of class XII with Roll No.____________.
Principal
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT
It is with great pleasure that I find myself penning down these lines
to express my sincere thanks to various people who helped me a long
way in completing this project.
T.UDAY
Name of the Student
SREE VIDYANIKETHAN INTERNATIONAL SCHOOL (CBSE),
Department of Computer Science,
AFFILIATED TO CBSE NO: 130124,
SREE SAINATH NAGAR, TIRUPATI – 517 102.
1.Narayanan
2.Uday
3.Mohan
CONTENTS
•INTRODUCTION
•REQUIRMENTS
•SOURCE CODE
•SAMPLE OUTPUT
•FUTURE ENHANCEMENTS
•CONCLUSION
•REFERENCE
Introduction of the Project
Software Requirements:
Hardware Requirements:
✓ RAM : 2 GB
✓ HDD Space : 1 GB
✓ Processer : Intel Pentium or greater
✓ Screen Resolution : 1366 x 768(Optimal)
✓ Graphics Card : Minimum 64 MB
.
SOURCE CODE
SOURCE CODE
class hotelbill:
def __init__(self, tot='', s=0, p=0, r=0, a=1500, name='', address='', cindate='',
coutdate='', rno=1000):
self.tot = tot
self.r = r
self.p = p
self.s = s
self.a = a
self.name = name
self.address = address
self.cindate = cindate
self.coutdate = coutdate
self.rno = rno
def inputdata(self):
self.name = input("\nENTER YOUR NAME :")
self.cindate = input("\nEnter your checkin date:")
self.coutdate = input("\nEnter your checkout date:")
self.address = input("\nEnter your address:")
print("Your room no.:", self.rno, "\n")
def roomrent(self):
if (x == 1):
self.s = 10000 * n
elif (x == 2):
self.s = 6000 * n
elif (x == 3):
self.s = 4000 * n
elif (x == 4):
print("you have opted room type -->DELUXE")
self.s = 3000 * n
else:
def restaurentbill(self):
print("*****<<<<<RESTAURANT MENU>>>>>*****")
print("1.water----->Rs20", "2.tea----->Rs25", "3.breakfast combo--->Rs120",
"4.lunch---->Rs150",
"5.dinner--->Rs150", "6.Exit")
while (1):
if (c == 1):
d = int(input("Enter the quantity:"))
self.r = self.r + 20 * d
elif (c == 2):
d = int(input("Enter the quantity:"))
self.r = self.r + 25 * d
elif (c == 3):
d = int(input("Enter the quantity:"))
self.r = self.r + 120 * d
elif (c == 4):
d = int(input("Enter the quantity:"))
self.r = self.r + 150 * d
elif (c == 5):
d = int(input("Enter the quantity:"))
elif (c == 6):
break;
else:
print("Invalid option (choose correct combo)")
def gamebill(self):
print("******<<<<<GAME MENU>>>>>*******")
print("1.Table tennis----->Rs100", "2.Bowling----->Rs150", "3.Snooker--->Rs200",
"4.Video games---->Rs100",
"5.Pool--->Rs50", "6.Exit")
while (1):
if (g == 1):
h = int(input("No. of hours:"))
self.p = self.p + 100 * h
elif (g == 2):
h = int(input("No. of hours:"))
self.p = self.p + 150 * h
elif (g == 3):
h = int(input("No. of hours:"))
self.p = self.p + 200 * h
elif (g == 4):
h = int(input("No. of hours:"))
self.p = self.p + 100 * h
elif (g == 5):
h = int(input("No. of hours:"))
self.p = self.p + 50 * h
elif (g == 6):
break;
else:
print("Invalid option")
def display(self):
print("******HOTEL BILL******")
print("Customer details:")
print("Customer name:", self.name)
print("Customer address:", self.address)
print("Check in date:", self.cindate)
print("Check out date", self.coutdate)
print("Room no.", self.rno)
print("Your Room rent is:", self.s)
print("Your Food bill is:", self.r)
print("Your Game bill is:", self.p)
def main():
a = hotelbill()
while (1):
print("1.Enter Customer Data")
print("2.Calculate roomrent")
print("4.Calculate gamebill")
print("6.EXIT")
if (b == 2):
a.roomrent()
if (b == 3):
a.restaurentbill()
if (b == 4):
a.gamebill()
if (b == 5):
a.display()
if (b == 6):
quit()
main()
SAMPLE OUTPUT
Output of the Project
Finally, we conclude our work and present the output of the Project.
FUTURE
ENHANCEMENTS
➢ We can give more advance for hotel management including more
facilities
1. python.org
2. Code Academy
3. tutorialsPoint.com
4. PythonChallenge.com
6. LearnPython.org
7. layak.in