0% found this document useful (0 votes)
17 views26 pages

CS Project L

Uploaded by

rohanjoseph359
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views26 pages

CS Project L

Uploaded by

rohanjoseph359
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

KENDRIY VIDYALAYA I.N.

S
DRONACHARYA, MUNDAMVELI, KOCHI

A PROJECTREPORTSUBM17TED W PARTIAL FULFILLMENT OF THE

REQUIREMENTS

AISSCE -ALL INDIA SENIOR SCHOOL CERTIFICATE EXAMINATION

COMPUTERSCIENCE(OS3)
TERM 2 PROJECT 2021-22

TOPIC: -

HOTEL MANAGEMENT SYSTEM

Project prepared by:


ABHINAVV.V
Class: - 12 B

1
CERTIFICATE

This is to certify that the project entitled "hotel management system" is a


bona fide work by Abhinav V.V, science student of Kendriya Vidyalaya I.N.S
Dronacharya , during the academic year 2021-22 submitted for the CBSE
Board Term 2 Project Work (AISSCE 2021-22), in the subject of Computer
Science.

Mr. Soju Swami External eaminer


PGT Computer Science
Videaya
Kendriya

Smt. Ramadevi R
Principal I/C
Kendriya Vidyalaya INS Dronacharya

- 682 507
l.N.s
KOCHIa582 507
&OR/YA

2
ACKNOWLEDGEMENT

First of all we would like to thank our computer Science teacher, "Mr. Soju
Swami (PGT Computer Science)" whose valuable guidance has made the
project possible. Sir's suggestions and instructions have served as a major
contributorto this project. We would also like to express our gratitude to our
principal I/C, "Smt. Remadevi R" who gave us this opportunity to do this
wonderful project.

We extend our gratitude to our computerteachers and other staffs of KV INS


DRONACHARYA.

We are also thankful to each and everyone who have given their valuable time
and cooperated with us for the success of this project.

We would like to thank our families and friends for their constant cooperation
and supportthroughoutthe project within the limited time and in midst of this
difficult situation prevailing till date.

Last but not the least, our heartfelt thanks to God Almighty! !

If we had left out anyone to thank by name, kindly pardon us. We extend our
gratitudeto them also for their support and help.. ..

Thank you all!!

3
DECLARATION

We hereby declare that the term 2 project work entitled "Hotel management
System (Interview based project)" is a record of compilation carried out by
Abhijit Anil & Abhinav V.V, under the guidance and supervisionof Mr. Soju
Swami (PGT Computer Science) of Kendriya Vidyalaya INS Dronacharya
for the award of CBSE AISSE class MI certificate. We have not plagiarized
or submittedthe same work for the award of any other examination. In case this
undertaking is found incorrect, I accept that my certificate may be
unconditionallywithdrawn.

Submittedby:

• AbhinavV.V
Abhijit Anil

4
INDEX

SI.NO: TITLE NO:

I Abstract 06

2 Introduction 07-08

3 Statement of pumose 09

4 Existing system and proposed systejn 10

5 System Requirements Il
6 Python source code 12-26

'7 Output of the project 27-37

S Database and Table Structure 38-40

9 Backend data generated through software 41-43

10 Conclusion 44

Il Students Reflection 45

12 Bibliography 46

5
ABSTRACT
Name of the Project: Ilotcl NfanagernentSystem

Vi<ion•-

The ultimate motto of this project is to help the travellers to get all the info
about rooms

Prices, availability, food and other necessary information for hotel room
booking.

This project helps the users to carry this task online easily.

l) Economical Feasibility

2) Technical Feasibility

3) Operational Feasibility

Deliverable/ Functional Specification:-

l. Getting Number of users

2. Storing the information about the number of members

3. Enquiry about the Food/ Availability of rooms

4. Booking of rooms and generating receipt.

6
INTRODUCTIONOF THE PROJECT

checking whether
I Iotcl Management System is a system that provides us to reserving rooms,
very useful to all
the rooms are vacant are or not etc by using online browsing. This system is
time for these
espectally for business people. For Business people they don't have sufficient
project we will
then they can use these type of online Hotel Management Systems. By this
the bills to the
reduce the faults in bills of their expenditure and decrease time of delay to give
can al,so include all
customers. We can also save the bills of the customer. By this project we
reduce the errors in
the taxes on the bills according to their expenditures. It has a scope to
seconds. Online
making the bills. Computerized bill can be printed within fraction of
on php. If any
ordering of Booking is possible by using this software. This Project is based
number by seeing
one wants to hook the room for few days then they can specify the specific
type of room they
the types of rooms we have. The bill of this online booking is based on the
reservation site script
can select is displayed. HOTEL MANAGEMENT SYSTEM is a hotel
booking reservations
where site users will be able to search rooms availability with an online
availability, and book
system. Site users can also browse hotels, view room inventory, check
search for
rcscrvations in rcal-timc. Sitc users cntcr check in dateÅnd check out datc thcn
availability and rates. After choosing the right roo m the wanted hotel —
all booking and
reservation process is done on the site and an SM s sent to confirm the booking

we the students of CLASS B of DRIYA VIDYALAYA INS DRONACHARYA


has been assigned the work AGEMENT SYSTEM.

students named Abhijit


To perform this task the students were divided into the group of two
Anil and Abhinav vv.
the overall mistakes
We both did the work of coding and programming and have analysed
and have done the conclusion work.

RECORD
The project starts with Enter 1 - CUSTOMER DETAILS Enter 2 - BOOKING
6
Enter 3 - ROOM RENT Enter 4 - RESTAURENT BILL Enter 5 - GAMING BILL Enter
- FASHION STORE BILL Enter 7 - DISPLAY CUSTOMER DETAILS Enter 8 - TOTAL
BILL Enter 9 - OLD BILL Enter 10- EXIT

We are so glad that this work has been assigned to us, yet we haven't done this work before.
Soju Swami, our subject teacher have also helped us a lot to complete this project. We feel so
blessed that we have learnt all this work with the help of our sir, we are also thankful to our

7
respected principal Mrs Remadevi R for providing us various facilities to complete this
project.

project before, we
As we are the students of CLASS Xll B and we haven't done this type of
.Hence, we
have performed all that which we have learnt from our CBSE PROGRAMMING
we have stancd
know that this programming would be further done on a big platform. Since
help us a lot in our
with this programming we believe that this programming would further
future.
while performing
We are also thankful to our group mates for cooperating with each other
this task we have also polished the skills of group activity.

PROCESS

have to do on the
FIRSTLY, we have done the planning in a paper work regarding what
assigned project HOTEL MANAGEMENT SYSTEM.
he provided us the
SECONDLY, we discussed our p!anning with our subje eacher and then
right path to perform the work.
NEXT, we started our project on foot paths of o subject teacher.
months for completion.
THEN, we started our coding, coding took aro nd 2 and half

NEXT, we analysed the mistakes done a d en we corrected them.

THEN, we prepared the project format as shown above.

GROUP MATES .ALSO


THANKS TO ALL OF WORTHY TEACHERS AND PRINCIPAL AND MY DEAR
PROVIDING US THIS GOLDEN
A GREAT THANKS TO KENDRIYA VIDYALAYA SANGATHAN FOR
OPPORTUNITY

THANK YOU!!!!!

8
STATEMENT OF PURPOSE

The purpose of hotel booking system is to automate the existing manual system by the help of
computerized equipmenCs and full-fledged coloputer software, filliilling their requirement,
so that their valuable or information can be stored for a longer period with easy accesing and
manipulating of the same . The required soiiware and hardware are easily available and easy
to work with. This proposes that elliciency oc hotel organizationscould be improved by
integrating service-oriented operations service-oriented operations with project management
principles. Such integration would instil innovation, proactive attitudes and regulated risk-
taking needed to pursue ongoing improvement and proactive response to change. By
managing each change as a project, embedded in smoothly running operations, hotels would
extend their life span by continuously reinventing themselves.

nr»vnnnues
The advantages of booking a hotel online add up long before your arrival. The most
importantadvantageof online hotel booking is convenience, you can book your room by
simply sitting in home. Internet helps you to browse through the hotels around the world and
compare the f'acilities and rates easily.

Existing System with Limitations:


Indeed the hotel management system (HMS) has bought many benefits to enhance the
operationof hotel and reduce the cost of hotels. Ilowever it can still occur with several
disadvantagesby applying 11MS.The weakness of JIMS not only affects the hotels but also
will affect the staffs and customers, Here are some of the disadvantages of HMS:

Reduce connection between staffs and guests


One of the biggest drawbacks of applying HMS in the lodging sector is reducing the human
touch. When ail the reservations check in and check out can be done online, the time a guest
spends at a hotel reception declines due to 11MS.Some people might think that it is indeed
convenient for both guests and staffs, but but it also means that the staff will feel challenged
to establisha good relationship with guests since the connection between them has decreased.

Rely to internetconnection for cloud based software


TO run JIMS that use cloud based software, internet access is a must. A dependable internet
connection is necessary to review reservations and add on the bookings that can be done
through the phone. Before the invention of cloud based software oft IMS, the installed hotel
softwarewas too expensive and complicated to maintain because it has to upgrade both
softwareand hardware.The existence of cloud based software is beneficial as it does not

9
require hardware, so it is cheaper and easier to use. In spite of that, it requires internet access
to run on it. It can become a weakness to the hotel or guest that does not have internet
connection with power failure happens. If power cuts happen when hotel staff is updating the
information of guests, there will be a high to lose the information.

High risk of cyber attack


The application of HMS is very helpful and convement tor hoteliers because most of the
reservations can be made online, unfortunately, it can turn out to lead hotels to high risk of
cyber-attack. Nowadays, hackers are all around the world. They can hack anything they like
to. For example, one of the most common cyber-attack in a hotel guest information being
hacked and stolen. Guests will share their name, address and payment.

CHARACTERSTICS

Store customer booking details


information such
As standard, the system has to be capable of storing basic customer contact
to details
as name, phone number, address etc. Most importantly the system needs to be able
which are
in regards to the customers room preferences/extras, pri ing, room status etc. All of
necessary for most of the functions within the syste ence why this is a high priority
feature that needs to be implemented.

Data Storage
contact
As standard the Hotel Booking System h o be capable of storing basic customer
needs to
information such as name, phone nu be , address etc. Most importantly the system
room status
be able to details in regards to the cust ers room preferences/extras, pricing,
hence why this is
etc. All of which are necessary for most of the functions within the system,
a high priority feature that needs to be implemented.

Payments

The Hotel Booking System needs to be able to check if customers have made payments or
not. The implementation of this feature is crucial to the functionality of the entire system,
reason being that a lot of the other features and operations within the system (i.e. placing
room reservations), thus making this a high priority that is mandatory to the systems design.

10
SYSTEM REQUIREMENTS OF THE PROJECT

RECOMMENDEDSYSTEM REQUIREMENTS
Processors: Intel@ CoreTMi3 processor 4300M at 2.60 GHz.
Disk space: 2 to 4 GB.
Operating systems: Windows@ 10, MACOS, and UBUNTU.
Python Versions: 3.X.X or Higher.

MINIMUMSYSTEM REQUIREMENTS

Processors: Intel Atom@ processor or Intel@ Core i3 processor.

Disk space: 1 GB.


Operating systems: Windows 7 or lat COS, and UBUNTU.

Python Versions: 2.7.X, 3.6.X.


Prerequisites before installing MySQL Connector Python
You need root or administrator privileges to perform the installation process.
Python must be installed on your machine.

Note: MySQL Connector Python requires python to be in the system's PATH. Installation
fails if it doesn't find Python.

On Windows, If Python doesn't exist in the system's PATH, please manually add the
directory containing python.exe yourself.

11
CODING

INS IARYA

MANAGEMENT

and Maintained By:"


ANIL- CLASS B - ROLL NO - 8 [2021-2022]"
V V- CLASS Xll B - ROLL NO - 10[2021-20221"

import mysql.connector
# GLOBALVARIABLES DECLARATION
myConnnection —

cursor=""

userName=""
password =""

roomrent =0

restaurentbill=0
gaming bill=0

fashionbill=()

totalAmount=0

BMODULETO CHECK MYSQL CONNECTIVITY


def MYSQLconnectionC,heck C);

12
gk»bA) toyConncct von

gk)tul uscfNamc
global password
- USERNAME :
ENTER MYSQL SERVER%S
password ENTER MYSQL SERVERS PASSWORD
myConnect jon=mysql.connector.connect(host —"loca a tne,passwd password

if myConnection:
CONGRATULATIONS ! YOUR MYSQL CONNECTION HAS BEEN
ESTABLISHED

DATABASE IF NOT EXISTS i IMS")


cursor.execute("COMMIT")
cursor.close()
return myConncction
else:
ESTABLISHING MYSQLCO CTION CHECK USERNAME
AND PASSWORD

#MODULE TO ESTABLISHED MYSQL CO ECTION

def MYSQLconnection ()
global userName
global password
global myConnection
global cid
myConnection=mysql.connector.connect(host="localhost",
, database="HMS" ,
auth_plugin='mysql_native_password' )
if myConnection:
return myConnection
else:

ESTABLISHING MYSQL CONNECTION Y')

13
nnConnecuonac lose( )

def use' Entry(


global cid
if ntyConoeetton:

createTable TABLE IF NOT EXISTS C DETAILS(CID

VARC11AR(30).

C COUNTRYVARCllAR(30) VARCHAR(30))

cursor.execute(createTable)

cid = Customer identification Number

name = input("Enter Customer Name : ")


address = input("Enter Customer Address .
age= Customer Age

nationality input("Enter Customer Country :


phoneno= input("Enter Customer Contact Number
email = input("Fnter Customer Email
sql - "INSERT INTO C_Details
values— S

cursor.execute(sql,values)
cursor.execute("COMMlT")
print("\nNewCustomer Entered In The System Successfully !")
cursor.close()
else:
ESTABLISHING MYSQL CONNECTION

def bookingRecord():
global cid

customer—searchCustomer()
if customer:

14
If myConnectnn:

createTab1e-"CREATE TABLE IF NOT EXISTS BOOKING RECORD(CID


IN DATE ,CHECK OUT DATE)"
cursor.execute(createTable)
checkin=input("\n Enter Customer ChecklN Date I YYYY-MM-DD
Enter Customer CheckOUT Date [ YYYY-MM-DD 1

sql= "INSERT INTO BOOKING RECORD


values—(eid,eheckin,checkout)
cursor.execute(sql,values)
cursor.execute("COMMIT")
print&CHECK-1NAND ENTRY MADED SUCCESSFULLY l")

cursor.close()
else:
ESTABLISHING MYSQL CO CTION Y')

def roomRent():
global cid
customer=searchCustomer()

if customer:
giobai roomrent
if myConnection:
cursor=myConnection.cursor()
createTable-"""CREATE TABLE IF NOT EXISTS ROOM RENT(CID
INT,NO OF DAYS INT,ROOMNO INT ,ROOMRENT

cursor.execute(createTable)
print We have The Foliowing Rooms For You
print (" 1. Ultra Royal 10000 Rs.")
print (" 2. Royal 5000 RS. o)

print (" 3. Elite 3500 Rs. 'l)

15
print (h 4. Budget ----> 2500 USD
roomchovce Your Option : "))

roomno=int(input("Enter Customer Room No :


noofdays=int(input("Enter No. Of Days

if roomchoice— i :
roomrent = noofdays * 10000
print("\nUltra Royal Room Rent : ",roomrent)
elifroomchoice==2.
roomrent = noofdays * 5000
print("\nRoyal Room Rent : ",roomrent)
elifroomchoice==3:
roomrent = noofdays * 3500
print("\nElite Royal Room Rent ",roomrent)

elif
roomrent = noofdays * 2500
print("\nBudget Room Rent : ",roomrent)
else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!! ")
return
sql= "INSERT INTO ROOM RENT
values= (cid,roomchoice,noofdays,roomno,roomrent,)
cursor.execute(sql,values)

print("Thank You , Your Room Has Been Booked For : ",noofdays , "Days" )
print("Your Total Room Rent is : Rs. ",roomrent)
cursor.close()
else:

ESTABLISHING MYSQL CONNECTION


def Restaurent():
global cid

16
customer=searchCustomer()
If customer:
global restaurentbill
if myConncction:
cursor=myConneciion.cursor(

createTable TABLE IF NOT EXISTS RESTAURENT(CID

VARCHAR(30))

cursor-execute(createTable)
print("l. Vegetarian Combo 300 Rs.")

Non-Vegetarian Combo 500 Rs.")

print("3. Vegetarian & Non-Vegetarian Combo 750 RS")

choice dish = int(input("EnterYour Cusine : "))


Quantity : "))

if choice dish==l:
YOU HAVE ORDER: Vegetarian Combo

restaurentbill = quantity * 300


elifchoice dish==2:
YOU HAVE Non-Vegetarian Combo ")

restaurentbill = quantity * 500


elifchoice dish==3:
print(nnSO YOU HAVE ORDER: Vegetarian & Non-vegetarian Combo
restaurentbill= quantity * 750
else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!!
return

"INSERT INTO RESTAURENT


values= ity,restaurentbill)
cursor.execute(sql,values)
cursor.execute("COMMIT")

17
Is Re •.rrstaurcntbdl)
int! •••• WE 1101b}: YOU WILL i YOUR Mi AL
ck»scf)

cusc:

ESTABLISHING MYSQL CONNECTION


dcf Garntng():
global Cid
custonrr•searchCust omer()
if custonrr:
glotxal gamingbill
if myConnect ion:
cursor—myConnection.cursor()

createTable -"""CREATE TABLE IF NOT EXISTS GAMING(CID


IOURS
VARC11AR(30))
cursor.execute(createTable)
print("""
Table Tennis -----> Rs./HR

2. Bowling 100 Rs./11R

3. Snooker 250 Rs./llR

4. VR World Gaming 400 Rs./11R

5. Video Games 300 Rs./HR

6. Swimming Pool Games 350 Rs./HR

7. Exit

game=int(input("Enter What Game You Want To Play : "))


hour=int(input("EnterNo Ofllours You Want To Play

if :
HAVE SELECTED TO PLAY : Table Tennis")
gamingbill = hour * 150

18
elif game==2:
HAVE SELECTED TO PLAY Bowling")

gamingbill hour * 100


elif game-=3:
SELECTED TO PLAY Snooker")

gamingbill hour * 250

elif game—4:
HAVE SELECTED TO PLAY VR World Gaming")

gamingbill —hour * 400

elif game==5 :
HAVE SELECTED TO PLAY Video Games")

gamingbill = hour * 300

elif game ==6:


HAVE SELECTED TO PLAY S Imming Pool Games")

gamingbill = hour * 350


else:

print("Sorry ,May Be You Are Giving e Wrong Input, Please Try Again !!! ")

return

sql= "INSERT INTO GAMI


values—(cid,game,hour,gamingbill)
cursor.execute(sql,values)
cursor.execute("COMMIT")
print("YourTotal Gaming Bill Is : Rs. ",gamingbill)
: ",hour," HOURS" *** WE HOPE YOU WILL ENJOY YOUR
GAME

cursor.close()
else:

ESTABLISHING MYSQL CONNECTION

def Fashion():

19
global cid

if customer:
global fashionbill
if myConnection:
cursor=myConnection.cursor()
createTable TABLE IF NOT EXISTS FASHION(CID

VARCHAR(30))'""'
cursor.execute(createTable)
print("""
i. Shirts 1500 Rs.

2. T-Shirts 300 Rs.

3. Pants 2000 Rs.

4. Jeans 4000 Rs.

5. Tassel top 500 Rs.

6. Gown 3000 Rs.

7. Western dress 3000 Rs.

8. Skirts 400 Rs.

9. Trousers 200 Rs.

10. InnerWear 30 Rs.

dress=int(input("Enterthe your Choice wear: "))


quantity=int(input("How many you want to buy: "))
if 1:

print("\nShirts")

fashionbill quantity * 1500


elifdressa:
print("\nT-Shirts")
fashionbill = quantity * 300
elif

20
tashtonblll quantity 2000
elif
print("\nJeans")
fashionbiil —quantity * 4000

elifdress==5:
print("\nTassel top")
fashionbill = quantity * 500
elif dress-—6•.
print("\nGown")
fashionbill = quantity * 3000
elifdress==7:
print("\nWestern dress")
fashionbill = quantity * 3000
elif
print("\nSkirts")

fashionbill quantity * 400

elif dress==9:
print("\nTrousers")

fashionbill = quantity * 200


elif dress==10:
print("\nInnerWear")
fashionbill = quantity * 30
else:

print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!!
return
sql= "INSERT INTO FASHION
values= (cid,dress,quantity,fashionbill)

cursor.execute(sqi,values)

21
pnnt(nnYOtJ SEtycr ITEM NO : QUANTITY IS : ",quantlty,"
YOU FOR SHOPPING VISIT AGAIN!!!" )

print("\nYour Total Bill Is : ",fashionbill)


print ( ### # )

cursor.close()
else:
ESTABLISHING MYSQL CONNECTION

deftotalAmount():
global cid
customer=searchCustomer()
if customer:
global grandTotal
global roomrent
global restaurentbill
global fashionbill
global gamingbill
if myConnection:
cursor=myConnection.cursor()
createTabie TABLE IF NOT EXISTS TOTAL(CID
INT ,RESTAURENTBILL INT
,GAMINGBILL INT,FASHIONBILL INT,TOTALAMOUNT INT)
cursor.execute(createTable)
sql= "INSERT INTO TOTAL
name = input("Enter Customer Name : ")
grandTotal=roomrent + restaurentbill + fashionbill + gamingbill
values= (cid,name,roomrent,restaurentbiii , gamingbiii,fashionbiij,grandTotai)
cursor.execute(sql,values)
cursor.execute("COMMIT")
cursor.close()

22
CROWN PLAZA MIAMI CUSTOMER BIILING
CUSTOMER NAME : " ,name)

RENT Rs. ",roomrent)


BILL : Rs. ",restaurentbill)
BILL Rs. ",fashionbiii)
BILL Rs. ",gamingbill)

print("
AMOUNT Rs. ",grandTctal)

cursor.close()
else:
ESTABLISHING MYSQL CONNECTION

def searchOldBill():
global cid
customer—searchCustomer()

if customer:
if myConnection:
cursor=myConnection.cursor()
* FROM TOT ERE CID-
cursor.execute(sql,(cid,))

data—cursor.fetchall()
if data:
print(data)
else:

print("Record Not Found Try Again !")


cursor. close()

else:

print("\nSomthing Went Wrong ,Please Try Again !")

def searchCustomer():
global cid

23
if myConnect ion:
cursor—myConnect Ion-cursor( )

CUSTOMER ID :
sql-"SELECT * FROM C DETAILS WHERE CID-
cursor.execute(sqi,(cid,))
data—cursor.fetchall()
if data:
print(data)
return True
else:
print("Record Not Found Try Again !")
return False
cursor.close()

else:
print("\nSomthing Went Wrong ,Please Try Again !")

print(
INS

MANAGEMENT
* PLAZA *

Designed and Maintained By:


ABHIJIT ANIL- CLASS Xll B - ROLL NO - 8 [ 2021-2022
ABHINAV V V - CLASS - ROLL NO - 10 |

24
myConnecuon MYSQLconnect10nCheck ()

if myConnection:
MYSQLconnection ()

while(True):
print(
I --->Enter Customer Details
Record

3--->Calculate Room Rent


4--->Calculate Restaurant Bill
5--->Calculate Gaming Bill
6--->Calculate Fashion store Bill
Customer Details
TOTAL BILL AMOUNT
OLD BILL
10-->EXIT """)
choice = int(input("Enter Your Choice"))
if choice—1:
userEntry()
elif choice ==2:
bookingRecord()
elifchoice — 3:
roomRent()

elif choice
Restaurent()
elif choice ==5:
Gaming()
elifchoice
Fashion()
elifchoice -—7:

25
searchCustomer()
clifchotce
totalAmount()
elif choice —=9•.
searchOidBili()
elif choice —
break
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try Again !!!
else:
ESTABLISHING MYSQL CONNECTION

# END OF PROJECT

You might also like