Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 39

Computer Science Project

Name: Ankur Santosh Bhandare


Class : XII
Roll no : 04

Subject : Computer Science


A Project Report

On

Hotel Management System

For

AISSCE 2021-2022 Examination

As a part of the Computer Science Course (083)

Submitted By :- Ankur Santosh Bhandare

Exam Roll No. :- 15618577

Under the Guidance of:

Mrs.Sheetal Bachhav

PGT- Computer Science


CERTIFICATE
This is to certify that the Dissertation entitled,
Hotel Management System is a bonafide work done by Ankur
Santosh Bhandare of class XII Science during the academic session
2021-2022 is partial fulfillment of CBSE's AISSCE Examination
2022 and has been carried out under my direct supervision and
guidance. This report or a similar report on the topic has not been
submitted for any other examination and does not form a part of any
other course undergone by the candidate.

______________ ________________
Sign of Internal Examiner Sign of External Examiner

(Mrs. Sheetal Bachhav)

_________________
Signature of Principal Seal of the school
Declaration

I declare that this project entitled "Hotel Management System" done


at Prodigy Public School is a record of project work submitted by me
for the partial fulfillment of the AISSC exam of CBSE under the
supervision and guidance of Mrs. Sheetal Bachhav (PGT- Computer
Science).The Project is genuine and not a reproduction of any project
previously done or submitted.

-Ankur Santosh Bhandare


Examination Roll No. - 15618577
Acknowledgement

I extend my sincere thanks to Prodigy Public School which provided


me with the opportunity to fulfill my wish and achieve my goal. I
would like to express deep debt to Mrs. Sheetal Bachhav (PGT-
Computer Science), project guide for her vital suggestions,
meticulous guidance and constant motivation which went a long way
in the successful completion of this project.
I cannot move on without thank beloved Principal Ma'am for
creating the required academic environment which made my task
appreciable.
On a moral personal note, my deepest appreciation and gratitude to
my beloved parents, who have been an inspiration and have provided
me with unrelenting encouragement and support.

- Ankur Santosh Bhandare


Table of Contents

Sr.n Description Page.


o no
1 Introduction 6
2 Objective Of the 7
Program
3 Existing HMS 8
4 Proposed HMS 8
5 Programs of the Project 10
6 Source code 11
7 Output 26
8 Hardware and Software 30
Requirements
9 Bibliography 31
Project on Hotel Management
System

Introduction

1).Python : It is a programming language which is


used to make a lots of things like a web site or an
app it is also used in schools for making student
understand how programming works and it is also
a main source for IIT.

1).Mysql : It is a programming language to make


the employees working in a cell on do a better job
for example keeping the records and calculations
of the services which were done by the customer.
OBJECTIVES OF THE PROJECT

Objectives of this Hotel Management Program


shall enable the user to book the rooms and tables
online manage the payment. The tool shall add all
necessary details of the customer. It also monitors
the billing process of the foods and rooms. This
tool shall hold details of the rooms and the
employees working there. Salary and leaves of the
employees. It also hold details of groceries
required.
It is going to be a useful tool for the purpose of
managing hotel. By various features of Computer
we can make the work of Hotel smoothly with
accuracy and simplicity and will be a time saving
method for all the hotel owners.
EXISTING HOTEL MANAGEMENT
SYSTEM:

The existing Hotel Management System did not


have a user-friendly interface. The detail
regarding all customers is manually written and
recorded. There was no proper managing system
in past and creates problem for the owner
maintain the records.

PROPOSED SYSTEM:

This Hotel Management System tool is basically


developed to aid the owner to maintain proper
standards of managements. The user shall be able
to make proper billing and check details of
everything.
It shall also help the online users to book the
rooms online and check the fees structure of the
rooms. It also holds billing process and receipt
number and the amount to be paid. It shall also
generate a final report of each employee of the
Hotel. It shall also enable user to make changes in
the databases of the hotels
And these are points which shall be there in the
project Hotel Management.
PROGRAMS OF THE PROJECT

It is going to be a menu driven program


which contains various sub programs:
01.DISPLAY DETAILS OF HOTEL
02.CREATE TABLE OF EMPLOYEE
03.REGISTER EMPLOYEE DETAILS
04.CREATE TABLE CUSTOMER
05.REGISTER CUSTOMER DETAILS
06.UPDATE EMPLOYEE DETAILS
07.DISPLAY ALL EMPLOYEE DETAILS
08.DISPLAY ALL CUSTOMER DETAILS
09.SEARCH CUSTOMER DETAILS
10.SEARCH EMPLOYEE DETAILS
11.DELETE EMPLOYEE DETAILS
12.CREATE TOTAL BILL
SOURCE CODE

Python code:
import mysql.connector as sql
conn=sql.connect(host='localhost',user='root',password='123',
database='HMS')
if conn:
print("successfully connected")
c1= conn.cursor()

def display():
print(" ")
print("RATES OF LODGING PER DAY:")
print(" ")
print("ULTRA ROYAL=5000")
print("ELITE=2500")
print("BUDGET=1500")
print(" ")
print("RATES OF RESTAURANT:")
print(" ")
print("ROTI=5")
print("RICE=70")
print("MIX VEG=100")
print("Biryani=200")
print("DESERT=50")
print("MINERAL WATER=20")
print("NOTE:2.O% TAX WILL BE APPLIED ON
TOTAL COST")
print(" ")
print(109*'~')
print(" ")

def createtable():
c1=conn.cursor()
c1.execute("create table if not exists employee(emp_id
varchar(25) primary key,emp_name varchar(25) not
null,emp_age int not null,Mob_no char(25),emp_designation
varchar(25),emp_salary float)")
print("table created")
print(" ")
print(109*'~')
print(" ")
def addemp():
c1=conn.cursor()
n=int(input("ENTER HOW MANY EMPLOYEE TO BE
INSERTED:"))
for i in range(n):
emp_id=input(str("ENTER EMPLOYEE ID:"))
emp_name=input("ENTER FULL NAME OF
EMPLOYEE NAME:")
emp_age=int(input("ENTER EMPLOYEE AGE:"))
Mob_no=input("ENTER EMPLOYEE'S MOB_NO:")
emp_des=input("ENTER EMPLOYEE
DESIGNATION:")
emp_sal=float(input("ENTER EMPLOYEE
SALARY:"))
sql="insert into employee values(%s,%s,%s,%s,%s,
%s)"

value=(emp_id,emp_name,emp_age,Mob_no,emp_des,emp_
sal)
c1.execute(sql,value)
print("SUCCESSFULLY INSERTED")
conn.commit()
c1.close()
print(" ")
print(109*'~')
print(" ")

def createcust():
c1=conn.cursor()
c1.execute("create table if not exists customer(cust_id
varchar(25) primary key,cust_name varchar(25),cust_age
char(3),cust_mob_no char(10),roomtype varchar(25),price
float)")
print("table created")
print(" ")
print(109*'~')
print(" ")

def addcust():
c1=conn.cursor()
n=int(input("ENTER HOW MANY CUSTOMER TO BE
INSERTED:"))
for i in range(n):
cust_id=input(str("ENTER CUSTOMER ID:"))
cust_name=input("ENTER FULL NAME OF
CUSTOMER NAME:")
cust_age=int(input("ENTER CUSTOMER'S AGE:"))
cust_mob_no=input("ENTER CONTACT NUMBER
OF CUSTOMER:")
roomtype=input("ENTER ROOM TYPE:")
price=float(input("ENTER ROOM PRICE:"))
sql="insert into customer values(%s,%s,%s,%s,%s,%s)"

value=(cust_id,cust_name,cust_age,cust_mob_no,roomtype,p
rice)
c1.execute(sql,value)
print("SUCCESSFULLY ENTERED")
conn.commit()
c1.close()
print(" ")
print(109*'~')
print(" ")
def updateemployee():
c1=conn.cursor()
identity=input(str("ENTER EMPLOYEE ID TO BE
UPDATED: "))
emp_name=input("ENTER EMPLOYEE NAME: ")
emp_age=int(input("ENTER EMPLOYEE AGE:"))
Mob_no=input("ENTER EMPLOYEE'S MOB_NO: ")
emp_des=input("ENTER EMPLOYEE
DESIGNATION:")
emp_sal=float(input("ENTER EMPLOYEE SALARY:"))
sql="update employee set
emp_name='{}',emp_age='{}',Mob_no='{}',emp_designation
='{}',emp_salary='{}' where
emp_id={}".format(emp_name,emp_age,Mob_no,emp_des,e
mp_sal,identity)
print(sql)

c1.execute(sql)
conn.commit()
print("updated")
c1.close()
print(" ")
print(109*'~')
print(" ")

def updatecustomer():
c1=conn.cursor()
cust_identity=input(str("ENTER CUSTOMER ID TO BE
UPDATED: "))
cust_name=input("ENTER CUSTOMER NAME: ")
cust_age=int(input("ENTER CUSTOMER AGE:"))
cust_mob_no=input("ENTER CUSTOMER'S MOB_NO:
")
roomtype=input("ENTER ROOM TYPE
DESIGNATION:")
price=float(input("ENTER CUSTOMER SALARY:"))
sql="update customer set
cust_name='{}',cust_age='{}',cust_mob_no='{}',roomtype='{
}',price='{}' where
cust_id={}".format(cust_name,cust_age,cust_mob_no,roomt
ype,price,cust_identity)
print(sql)

c1.execute(sql)
conn.commit()
print("updated")
c1.close()
print(" ")
print(109*'~')
print(" ")

def Display_all_Employee_Details():
c1.execute('select * from employee')
data=c1.fetchall()
for i in data:
print(i)
print(" ")
print(109*'~')
print(" ")

def Display_all_Customer_Details():
c1.execute('select * from customer')
cust_data=c1.fetchall()
for i in cust_data:
print(i)
print(" ")
print(109*'~')
print(" ")

def searchcust():
c1=conn.cursor()
exp=input("ENTER CUSTOMER NAME TO BE
SEARCHED: ")
sql="select * from customer where cust_name='"+(exp)
+"'"
c1.execute(sql)
result=c1.fetchall()
for i in result:
print(i)
print(" ")
print(109*'~')
print(" ")

def searchemp():
c1=conn.cursor()
exp=input("ENTER EMPLOYEE NAME TO BE
SEARCHED: ")
sql="select * from employee where emp_name='"+(exp)
+"'"
c1.execute(sql)
result=c1.fetchall()
for i in result:
print(i)
print(" ")
print(109*'~')
print(" ")

def deleteemp():
c1=conn.cursor()
print("ENTER EMPLOYEE NAME TO BE DELETED")
exp=input("ENTER NAME:")
c1.execute("delete from employee where emp_name='"+
(exp)+"'")
print("RECORD DELETED")
conn.commit()
c1.close()
print(" ")
print(109*'~')
print(" ")
def totalbill():
while True:
print("************HOTEL
CRISP***************")
print("1.RESTAURANT & LODGING BILL")
print("2.EXIT")
choice=int(input("ENTER YOUR CHOICE: "))
if choice==1:
tax=2

rate={"roti":5,"rice":70,"mix_veg":100,"Biryani":200,"desert
":50,"mineral_water":20,"ULTRA_ROYAL":5000,"ELITE":
2500,"BUDGET":1500}
print("RESTAURANT & LODGING BILL")
print("ULTRA_ROYAL , ELITE , BUDGET")
rooms=input("ROOM BOOKED: ")
if rooms=="ULTRA_ROYAL":
NOR=int(input("Number of Ultra royal rooms
booked: "))
NOD=int(input("Number of days: "))

cost1=((rate["ULTRA_ROYAL"]*NOR)*NOD)*tax
elif rooms=="ELITE":
NOR=int(input("Number of Ultra royal rooms
booked: "))
NOD=int(input("Number of days: "))
cost1=((rate["ELITE"]*NOR)*NOD)*tax
elif rooms=="BUDGET":
NOR=int(input("Number of Ultra royal rooms
booked: "))
NOD=int(input("Number of days: "))
cost1=((rate["BUDGET"]*NOR)*NOD)*tax
print("ENTER QUANTITY OF FOLLOWING
ITEMS")
roti=int(input("roti:"))
rice=int(input("rice:"))
mixveg=int(input("mixveg:"))
Biryani=int(input("Biryani:"))
desert=int(input("desert:"))
mineralw=int(input("mineral water:"))
cost2=roti*rate["roti"]+rice*rate["rice"]
+mixveg*rate["mix_veg"]+Biryani*rate["Biryani"]
+desert*rate["desert"]+mineralw*rate["mineral_water"]
bill=cost1+(cost2*tax)
print("PLEASE PAY : Rs.",bill)
elif choice==2:
break
else :
print("Invalid Choice")
print(" ")
print(109*'~')
print(" ")

print("
#################################################
#################################################
######")
print("
*************************************************
*************************************************
******")
print(" HOTEL MANAGEMENT
SYSTEM ")
print(" HOTEL CRISP")
print(" #DESIGNED AND MAINTANED BY:")
print(" 1.ANKUR BHANDARE XII-A ROLL-NO:04")
print(" 2.ARYAN LOKHANDE XII-A ROLL-NO:06")

print("
*************************************************
*************************************************
*****")
print("
#################################################
#################################################
#####")

print(" WELCOME TO HOTEL CRISP


")
print("DETAILS OF FACALITIES AVAILABLE IN OUR
HOTEL:")
print("1.CLEANLINESS")
print("2.ADEQUATE SAFETY")
print("3.FREE WI-FI")
print("4.24/7 HOT WATER")
print("5.SIMPLE AND TASTY FOOD")
print("############################################
#################################################
###############")
print("01.DISPLAY DETAILS OF HOTEL")
print("02.CREATE TABLE OF EMPLOYEE")
print("03.REGISTER EMPLOYEE DETAILS")
print("04.CREATE TABLE CUSTOMER")
print("05.REGISTER CUSTOMER DETAILS")
print("06.UPDATE EMPLOYEE DETAILS")
print("07.UPDATE CUSTOMER DETAILS")
print("08.DISPLAY ALL EMPLOYEE DETAILS")
print("09.DISPLAY ALL CUSTOMER DETAILS")
print("10.SEARCH CUSTOMER DETAILS")
print("11.SEARCH EMPLOYEE DETAILS")
print("12.DELETE EMPLOYEE DETAILS")
print("13.CREATE TOTAL BILL")
print("14.EXIT")

while True:
choice=int(input("ENTER YOUR CHOICE: "))
if choice==1:
display()
elif choice==2:
createtable()
elif choice==3:
addemp()
elif choice==4:
createcust()
elif choice==5:
addcust()
elif choice==6:
updateemployee()
elif choice==7:
updatecustomer()
elif choice==8:
Display_all_Employee_Details()
elif choice==9:
Display_all_Customer_Details()
elif choice==10:
searchcust()
elif choice==11:
searchemp()
elif choice==12:
deleteemp()
elif choice==13:
totalbill()
elif choice==14:
break
else:
print("invalid option")
Output
HARDWARE AND SOFTWARE
REQUIREMENTS
Hardware

I.OPERATING SYSTEM : Windows XP

Professional

II. PROCESSOR : Pentium III

866 Mhz

III. RAM : 128 MB

IV. Hard disk : 20 GB


V. CD/DVD r/w multi drive combo : LG 52X

VI. FLOPPY DRIVE 1.44 MB : 1.44 MB

VII. MONITOR :14.1 or 15 -17 inch

VIII. Key board and mouse : Standard 102 keys

and Standard Mouse

XI. Printer : Standard Printer ( B/W or

Colour )

Software

I. Windows
II. Python
III. Mysql

Bibliography

 Google
 Wikipedia
 Computer Science by Sumita Arora
 Botskool

You might also like