Professional Documents
Culture Documents
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
Narayanan
[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. Narayanan of class XII with Roll No. .
PRINCIPAl
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT
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):
elif (x == 2):
elif (x == 3):
elif (x == 4):
print("you have opted room type --
else:
self.s, "\n")
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):
c = int(input("Enter your
choice:")) 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:"))
d elif (c == 6):
break
; else:
print("Invalid option (choose correct
"\n")
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):
g = int(input("Enter your
choice:")) 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")
self.tot)
print("Additional Service Charges is", self.a)
print("Your grandtotal bill is:", self.tot+ self.a,
"\n") self.rno += 1
def main():
a = hotelbill()
while (1):
print("1.Enter Customer Data")
print("2.Calculate roomrent")
print("3.Calculate restaurant
bill") print("4.Calculate
cost") print("6.EXIT")
b = int(input("\nEnter your
choice:")) if (b == 1):
a.inputdata()
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.
Enter your choice:2
We have the following for you:-
1. type --->ROYAL---->RS.10000 PN\-
2. type --->LUXURIOUS--->RS. 6000 PN\-
3. type --->SUPREME--->RS. 4000 PN\-
4. type --->DELUXE--->RS. 5000 PN\-
Ent:er Your Cho1ce Please(enter 1/2/ 3/4) - - - ›1
ENTER THE NUMBER OF NIGHTS YOU WANT TO STAY:4
you have opted room type -->ROYAL
your room rent is = 40000
'›«›’«4riiiiU›)›)›"""'
'*t‹t'/ ‹I«GPIE fEfJ›)›)›’*’****
1. python.org
2. Code Academy
3. tutorialsPoint.com
4. PythonChallenge.com
6. LearnPython.org
7. layak.in