Comp 4 1
Comp 4 1
Submitted by : K.SRIHARIDHADEESH
GRADE: XII – A
VEDIC VIDYASHRAM SENIOR SECONDARY SCHOOL
Madurai Road , Thachanallur , Tirunelveli – 627 358
CERTIFICATE
This is to cerify that the Project Work entitled “HOTEL
MANAGEMENT” is the bonafide record of work done by
K.SRIHARIDHADEESH of Grade XII , Exam No:__________ in
practical classes of 12𝑡ℎ Standard during the Academic Year 2024-25.
He has taken proper care and shown utmost sincerity in completion
of this project as per the guidelines issued by CBSE.
At last I extend thanks with all my heart to the Teaching and Non-
Teaching Staff who have assisted me constructively in my work
DECLARATION
Date: K.SRIHARIDHADEESH
S.NO CONTENTS PAGE
NO
1 PREFACE 6
2 INTRODUCTION 7
3 OBJECTIVE 8
4 PYTHON FEATURES 9
5 PROPOSED SYSTEM 10
8 SOURCE CODE 13
9 OUTPUT 20
10 CONCLUSION 23
11 BIBLIOGRAPHY 24
PREFACE
6
INTRODUCTION
7
OBJECTIVE
Catering to thousands of papers, files, and reports can get challenging
because the physical space required to maintain manual data is much
larger. They call for proper management, sorting of every document so
that it can be easily accessed as and when needed. Management might
need temperature-controlled rooms to ensure data integrity.
The digitized version of documents only needs a cloud server where
the data can be stored and sorted in the required manner. The
management can opt from the different types of cloud server as per the
requirement.
In electronic records , there are set formats of each data, which makes
it easier to understand and study the information stored. The formats
are filled in a standard way.
Thus , I choose this topic in order to save data of customer and hotel
rooms in data storages such as text and csv files.
8
PYTHON FEATURES
Python front end:
Python is simple, open-source and object oriented coding language.
It is easy to learn as it is a dynamic type, high level and interpreted
coding language.
Python language supports a crossplatform operating system that is
used to build different applications that create a more convenient
environment for the users.
Python features:
Python is an expressive language-fewer line of codes and simpler
syntax.
Python is very easy and compact to use object-oriented.
It is an interpreted language and not a complied language.
Python can run equally well on a variety of platforms like windows,
LINUX etc.
Python language is freely available along with its source code.
Python has evolved into powerful, complete and useful languages
over the years.
9
PROPOSED SYSTEM
In today’s world with lots of population committing mistakes because of a
hurry is normal. As a tech improves , it is more convenient if we improve
along. using computer hard disk to store data and information also, using a
programming language for calculation is a smarter way to use technology
and also to save time .
10
HARDWARE & SOFTWARE
REQUIREMENTS
Hardware requirements:
Intel I3 Processor
Minimum 2GB RAM
Atleast 500 GB HD
Software Requirements:
Windows 7/8/9 OS
Python 3.6.4 Idle
11
SCOPE
12
SOURCE CODE
import csv
class hotelfarecal:
self.rt = rt
self.r = r
self.t = t
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.address = input("\nEnter your address:")
self.cindate = input("\nEnter your check in date:")
self.coutdate = input("\nEnter your checkout date:")
print("Your room no.:", self.rno, "\n")
def roomrent(self):
print("We have the following rooms for you:-")
print("1. type VIPSUITE---->rs 6000 PN\-")
print("2. type DELUXE---->rs 5000 PN\-")
print("3. type AC ROOM---->rs 4000 PN\-")
print("4. type NON AC ROOM---->rs 3000 PN\-")
13
x = int(input("Enter Your Choice Please->"))
n = int(input("For How Many Nights Did You Stay:"))
if x == 1:
print("you have opted room type A")
self.s = 6000 * n
elif x == 2:
print("you have opted room type B")
self.s = 5000 * n
elif x == 3:
print("you have opted room type C")
self.s = 4000 * n
elif x == 4:
print("you have opted room type D")
self.s = 3000 * n
else:
print("please choose a room")
print("your room rent is =", self.s, "\n")
def restaurentbill(self):
print("*****RESTAURANT MENU*****")
print("1.water----->Rs20", "2.tea----->Rs10", "3.breakfast
combo--->Rs90", "4.lunch---->Rs110", "5.dinner--->Rs150", "6.Exit")
while True:
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 + 10 * d
14
elif c == 3:
d = int(input("Enter the quantity:"))
self.r = self.r + 90 * d
elif c == 4:
d = int(input("Enter the quantity:"))
self.r = self.r + 110 * d
elif c == 5:
d = int(input("Enter the quantity:"))
self.r = self.r + 150 * d
elif c == 6:
break
else:
print("Invalid option")
print("Total food Cost=Rs", self.r, "\n")
def laundrybill(self):
print("******LAUNDRY MENU*******")
print("1.Shorts----->Rs3", "2.Trousers----->Rs4", "3.Shirt---
>Rs5", "4.Jeans---->Rs6", "5.Girlsuit--->Rs8", "6.Exit")
while True:
e = int(input("Enter your choice:"))
if e == 1:
f = int(input("Enter the quantity:"))
self.t = self.t + 3 * f
elif e == 2:
f = int(input("Enter the quantity:"))
self.t = self.t + 4 * f
elif e == 3:
f = int(input("Enter the quantity:"))
self.t = self.t + 5 * f
15
elif e == 4:
f = int(input("Enter the quantity:"))
self.t = self.t + 6 * f
elif e == 5:
f = int(input("Enter the quantity:"))
self.t = self.t + 8 * f
elif e == 6:
break
else:
print("Invalid option")
def gamebill(self):
print("******GAME MENU*******")
print("1.Table tennis----->Rs60", "2.Bowling----->Rs80",
"3.Snooker--->Rs70", "4.Video games---->Rs90", "5.Pool---
>Rs50==6", "6.Exit")
while True:
g = int(input("Enter your choice:"))
if g == 1:
h = int(input("No. of hours:"))
self.p = self.p + 60 * h
elif g == 2:
h = int(input("No. of hours:"))
self.p = self.p + 80 * h
elif g == 3:
h = int(input("No. of hours:"))
self.p = self.p + 70 * h
16
elif g == 4:
h = int(input("No. of hours:"))
self.p = self.p + 90 * 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 laundary bill is:", self.t)
print("Your Game bill is:", self.p)
17
# Save to CSV
self.save_to_csv()
def save_to_csv(self):
# Save the customer data and bill to the 'newrecord.csv'
with open("newrecord.csv", "a", newline="") as f:
writer = csv.writer(f)
writer.writerow([self.name, self.address, self.cindate,
self.coutdate, self.rno, self.s, self.r, self.t, self.p, self.rt, self.a, self.rt +
self.a])
print("\nCustomer data saved to newrecord.csv!")
def main():
a = hotelfarecal()
while True:
print("1.Enter Customer Data")
print("2.Calculate room rent")
print("3.Calculate restaurant bill")
print("4.Calculate laundry bill")
print("5.Calculate game bill")
print("6.Show total cost")
print("7.EXIT")
if b == 2:
a.roomrent()
18
if b == 3:
a.restaurentbill()
if b == 4:
a.laundrybill()
if b == 5:
a.gamebill()
if b == 6:
a.display()
if b == 7:
quit()
main()
19
OUTPUT
20
When we enter three in the output
21
When we enter six in output
22
CONCLUSION
The system allows for efficient storage and retrieval of customer
information, including personal details, room assignments, and check-
in/check-out dates.
Customers can easily be added with all relevant data being captured at
the time of their booking.
The room charges are determined by the room type chosen, whether it's
an ultra-royal suite, a royal room, or a budget option, ensuring that
customers are billed fairly based on their preferences.
The system also includes restaurant charges, where the cost of meals
and beverages is calculated dynamically based on the customer's order.
23
BIBLIOGRAPHY
www,github.com
www.scribd.com
www.geeksgeeks.com
24