Sample C.S project
Sample C.S project
NAME : ARNAV.D
STANDARD : XII
SECTION : ARDENT
1|P a g e
CERTIFICATE
This is to certify that the project entitled
“HOTEL MANAGEMENT SYSTEM” Is a record
of bonafide work carries out by “ARNAV.D” of
XII-ARDENT. In partial Fulfilment of the
requirements in COMPUTER SCIENCE
prescribed by CBSE for CBSE BOARD 2024 –
2025 in school EVERWIN VIDHYASHRAM
SENIOR SEC.SCHOOL, Kolathur, Chennai-
600099.
DATE: PRINCIPAL
INTERNAL EXTERNAL
2|P a g e
ACKNOWLEDGEMENT
We wish to express our sincere thanks to Ms.
Vidhya Hari, Principal of EVERWIN
VIDHYASHRAM SENIOR SEC.SCHOOL,
Kolathur , Chennai for guiding us to cause the
successful outcome of this project work.
We wish to express our deep & profound sense
of gratitude to our guide/teacher SUMALATHA.S
(Comp. Sc), for her expert help & valuable
guidance, comments and suggestions. We also place
on record, our sincere gratitude to one and all who,
directly or indirectly have lent their helping hand in
this venture.
3|P a g e
INDEX
S.NO CONTENT PAGE
1. INTRODUCTION TO PROJECT 5
2. CODING 6
3. OUTPUTS 16
4. BIBLIOGRAPHY 21
4|P a g e
INTRODUCTION
My project on “HOTEL MANAGEMENT” gives idea about the management
in hotels. The package gives all the
information regarding the check in
or check out facilities of customer.
The customer can make his or her
booking for rooms and food etc. It
gives details of the customer and the
time of arrival and departure of
customer. The package also provides
the facility of searching the customer
or employee working in that
particular hotel by name by provided
Id. It gives a detailed report of the
customer and the room occupied by him/her. This software is very useful to the
departments for managing their activities. Although, hotels are already having
well-developed software for information management. We just want to study how
this is done. So, I selected hotel management system as my project. I visited
various hotels and gone through their software. In most of the hotel the back-end
used only MSACCESS. But I included SQL in my since it is pure relational
database. In one of hotel, I found that they have problem that software does not
show the room vacant as soon as it being vacant. The status of room is updated
only after 12 hours or 24 hours depending upon the time period the have taken.
They were facing problem in providing and at any moment of time the status of
room that whether it is vacant or occupied is shown correctly.
5|P a g e
CODING
Creating Database and Table
import mysql.connector
db=mysql.connector.connect(host='localhost',user='root',password='deepak')
mycursor=db.cursor()
db=mysql.connector.connect(host='localhost',user='root',password='deepak',database=
'HOTEL_MANAGEMENT')
mycursor=db.cursor()
6|P a g e
mycursor.execute("insert into Room values('1-500','Duplex',6000,'Two rooms on\ same floor connected by
common stairs',5)")
db.commit()
def speciality():
db=mysql.connector.connect(host='localhost',user='root',password='deepak',database=
‘HOTEL_MANAGEMENT')
mycursor=db.cursor()
7|P a g e
mycursor.execute(qry)
print("\nDESCRIPTION:")
print("The Taj Mahal Palace, Mumbai makes a wonderful starting point from which to\ discover the
charms that bring people from around the globe flocking to Mumbai city,\ India’s commercial and
entertainment capital. Around the corner from the hotel is Colaba\ Causeway - a vibrant stretch filled with
roadside stores, jewellery shops, pubs and\ restaurants that whisks guests back in time to old Bombay. Take a
tour of and learn about\ the rich history and architecture of this vibrant city, accompanied by Government of
India\ appointed and trained tourism officials.Walk past Gothic buildings and through narrow\ streets.Visit
historic locations such as Wellington Fountain, Regal Cinema, Indian Merchant\ Building, Asiatic Library, CSMVS
Museum, Jehangir Art Gallery, Elphinstone College and\ other prominent buildings in varying styles of
architecture, each symbolic of a particular\ period of Bombay’s social and commercial history.\n")
db.commit()
print("SERVICES:")
print("For the disabled, Breakfast, Restaurant, Adsl wi-fi internet, Fax, Newspapers,\ Transfer, Tourist
information, Small animals welcome, Private parking,Guarded garage,\ 24h reception, 24h bar, Beaches at 500
m, Shuttle bus stop for the airport only 10 minutes\ away.\n")
print("FACILITIES:")
print("BOOKING:")
mycursor.close()
db.close()
8|P a g e
mycursor=db.cursor()
rec_srch=(Ccode,)
mycursor.execute(qry,rec_srch)
rec_count=0 for(Ccode,Cname,Cadd,Cindate,Coutdate,Room_no,Room_rent,Food_bill,Laudry_bill,
Game_bill,SubTotal_bill,Add_charges,GrandTotal_bill) in mycursor: rec_count+=1
if (rec_count==0):
db.commit()
9|P a g e
mycursor.close()
db.close()
Update Customer
def update():
print("1.Customer Name:")
print("2.Customer Address")
if (c==1):
db=mysql.connector.connect(host='localhost',user='root',password=
'deepak', database='HOTEL_MANAGEMENT')
mycursor=db.cursor()
data=(Cname,Ccode)
mycursor.execute(q,data)
data=(Cname,Ccode)
mycursor.execute(q,data)
10 | P a g e
print('\nRecord Updated .... ')
db.commit()
mycursor.close()
db.close()
elif (c==2):
db=mysql.connector.connect(host='localhost',user='root',password=
'deepak' database='HOTEL_MANAGEMENT')
mycursor=db.cursor()
data=(Cadd,Ccode)
mycursor.execute(q,data)
data=(Cadd,Ccode)
mycursor.execute(q,data)
db.commit()
mycursor.close()
db.close()
elif (c==3):
db=mysql.connector.connect(host='localhost',user='root',password=
'deepak', database='HOTEL_MANAGEMENT')
mycursor=db.cursor()
11 | P a g e
Ccode=int(input('\nEnter Code of Customer to be Updated:'))
data=(Cindate,Ccode)
mycursor.execute(q,data)
data=(Cindate,Ccode)
mycursor.execute(q,data)
db.commit()
mycursor.close()
db.close()
elif (c==4):
db=mysql.connector.connect(host='localhost',user='root',password=
'deepak', database='HOTEL_MANAGEMENT')
mycursor=db.cursor()
data=(Coutdate,Ccode)
mycursor.execute(q,data)
data=(Coutdate,Ccode)
12 | P a g e
mycursor.execute(q,data)
db.commit()
mycursor.close()
db.close()
elif (c==5):
db=mysql.connector.connect(host='localhost',user='root',password=
'deepak', database='HOTEL_MANAGEMENT')
mycursor=db.cursor()
data=(Ccontact_no,Ccode)
mycursor.execute(q,data)
db.commit()
mycursor.close()
db.close()
else :
print("Invalid Input!!")
print("\n\t\t\t\t\t\t\t\t ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░")
print("֎֎ ֎֎֎֎֎ ֎֎֎ ֎ ֎֎֎֎ ֎ ֎֎֎ ֎
֎֎֎
֎֎֎֎֎
֎֎֎
֎֎\֎
֎֎֎֎
֎֎֎
֎֎░░ WELCOME TO THE
13 | P a g e
while True:
print("\n") print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
print("2.Customer Management")
print("4.EXIT") print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~")
if (b=='1'):
speciality()
elif (b=='2'):
hotelfarecal()
elif (b=='3'):
party()
elif (b=='4'):
quit()
else:
print("Wrong Choice")
14 | P a g e
OUTPUTS
➢ Customer Mangement
15 | P a g e
➢ Inserting data of customer
16 | P a g e
➢ Displaying customers in Hotel
17 | P a g e
➢ Displaying customer by its code
18 | P a g e
➢ Updating cutomer’s name by its code
19 | P a g e
BIBLIOGRAPHY
• python.org
• Code Academy
• tutorialsPoint.com
• PythonChallenge.com
• LearnPython.org
20 | P a g e