Sei sulla pagina 1di 20

IP

PROJECT

Hotel Management
system

By:
Abhinil Kumar (XII C)
Satyam Utkarsh (XII C)
Shivam Kumar (XII C)
Durgesh Nandan(XII C)
CERTIFICATE
This is to certify that Abhinil Kumar ,Satyam Utkarsh
,Shivam kumar and Durgesh Nandan of class Xll C of
K.V., No. 1, Kankarbagh has prepared this project
under my supervision .

This project “ Hotel Management System” was


submitted on time and was found to be correct in all
respect.

Mr. Manoj Kumar


(PGT Computer Science)
ACKNOWLEDGEMENT
I would like to express my immense gratitude to
every one for their support, inspirations and helping
us all the way from piled up statements to a really
working program.
It is made what it is with utmost dedication,
breathtaking hard work, and creativity. I am
extremely delighted to make this project.
Through all the ups and downs, I’ve come up with this
project for my last year of schooling. This
acknowledgement is not a formality but a small
space to explain my heartily feeling of goodness and
proud on myself.
At the end I want to thank all who supported me to
complete this project.
INDEX
 ABSTRACT
 INTRODUCTION
 OBJECTIVE
 SOFTWARE/HARDWARE REQUIREMENTS
 SYSTEM DESIGN
 DATABASE/TABLE DESIGN
 CODE
 OUTPUT SCREENSHOTS
 BIBILIOGRAPHY
ABSTRACT
In our project, on "Hospital management system",
we have tried to show how the Data/information in
hotels is managed. This is just an overview of
management in hotels. This has been achieved by
dividing the projects into various modules. Customer
is provided with different services like restaurant,
laundry, game and others. Our project runs on idle
as well as on spyder and Jupiter and has
connectivity with mysql . Our project also include
module for registration of user and to calculate the
total cost to paid .We have included only a few
module, as our purpose is to only have the idea or to
study about how the management is done in hotel.
By adding many more module this type of projects
can have scope in various hotels.
INTRODUCTION
Our project on "Hotel Management System" gives
the idea about the managements in hotels. The
package gives all the information regarding the
check in and checkout facilities of the customer. The
customer can make his or her booking of food and
rooms. It gave the information about check in,
checkout, food bill, laundry bill, game bill and room
rent. It gave the detailed report of the customer and
the room occupied by him/her and details of the
cost he/she has to paid.
Although, hotels have already well-developed
software for information management, we just want
to study how this is done. We selected Hotel
Management System as our project because
developing project on this topic has many scope.
OBJECTIVE
We have following objective from this project:

 To reduce the number of pages used for


data storage.
 As back up facility provided in case of data
loss.
 To reduce cycle time till the update data will
be available.
 Speedy retrieval of data.
 Compatible with the advanced versions for
future perspective.
 Cost benefits
SOFTWARE/HARDWARE REQUIREMENTS

Software Requirment

 Python Version 3.4


 MySQL 8.0.17

Hardware Requirement

 Intel Processor 2.0 GHz or above.


 160 GB or more Hard Disk Drive or above
 2 GB RAM or more.

.
SYSTEM DESIGN
DATA FLOW DIAGRAM

Context Diagram

CUSTOMER

Request Response

HOTEL
MANAGEMENT
SYSTEM
DATABASE/TABLE DESIGN

CUSTOMER_DATA
Name varchar(30)
City char(10)
mobileno char(10)
id_proof varchar(30)
id_number char(20)
chaeckindate varchar(8)
checkoutdate varchar(8)
DATABASE/TABLE DESIGN

HOTEL_COST
name varchar(30)
room_rent integer
food_cost integer
laundry_cost integer
game_cost integer
grand_total integer
CODE
print("****Welcome to our hotel management project****\n")
import mysql.connector as sqltr
mydb=sqltr.connect(host="localhost",user="root",passwd="kvk123")
mycursor=mydb.cursor()
mycursor.execute("drop database if exists hotel")
mycursor.execute("create database if not exists hotel")
mycursor.execute("use hotel")
mycursor.execute("create table if not exists customer_data(name varchar(30),city
char(20),mobileno char(10),id_proof varchar(30),id_number char(20),checkindate
varchar(8),checkoutdate varchar(8))")
mycursor.execute("create table if not exists hotel_cost(name varchar(30) primary
key,room_rent integer,food_cost integer,laundary_cost integer,game_cost
integer,grand_total integer)")
mydb.commit()
while(True):
print("1=Enter customer Data\n")
print("2=Enter Room rent or Food bill or Laundary bill or Game bill \n")
print("3=Display customer data\n")
print("4=Exit\n")

ch=int(input("Enter your choice:\n"))


if(ch==1):
print("****Please Enter The Following Data****\n")
name=input("Enter your name:\n")
city=str(input("Enter city name:\n"))
mobileno=str(input("Enter mobile no.:\n"))
idproof=input("Enter the name of id submitted\n")
idno=str(input("Enter the id number\n"))
checkindate=str(input("Enter check in date in ddmmyyyy.:\n"))
checkoutdate=str(input("Enter check out date in ddmmyyyy.:\n"))
mycursor.execute("insert into customer_data
values('"+name+"','"+city+"','"+mobileno+"','"+idproof+"','"+idno+"','"+checkindate+"','"+chec
koutdate+"')")
mydb.commit()
print("Your Room number is 101\n")
print("Thank You\n")
elif(ch==2):
print("Please Enter The Following Data")
name=input("Enter your name:")
s=0
print("\n````ROOM RENT````\n")
print ("We have the following rooms for you:-")
print ("1. type A---->rs 6000 PN\-")
print ("2. type B---->rs 5000 PN\-")
print ("3. type C---->rs 4000 PN\-")
print ("4. type D---->rs 3000 PN\-")
x1=int(input("Enter Your Choice Please->"))
n=int(input("For How Many Nights Did You Stay:"))
if(x1==1):
print ("you have opted room type A")
s=s+6000*n
elif (x1==2):
print ("you have opted room type B")
s=s+5000*n
elif (x1==3):
print ("you have opted room type C")
s=s+4000*n
elif (x1==4):
print ("you have opted room type D")
s=s+3000*n
else:
print ("please choose a room")
print ("your room rent is =",s,"\n")
r=0
print("\n````RESTAURANT MENU````\n")
print("1.water----->Rs20","2.tea----->Rs10","3.breakfast combo--->Rs90","4.lunch----
>Rs110","5.dinner--->Rs150","6.Exit")
while (1):
c=int(input("Enter your choice:"))
if (c==1):
d=int(input("Enter the quantity:"))
r=r+20*d
elif (c==2):
d=int(input("Enter the quantity:"))
r=r+10*d
elif (c==3):
d=int(input("Enter the quantity:"))
r=r+90*d
elif (c==4):
d=int(input("Enter the quantity:"))
r=r+110*d
elif (c==5):
d=int(input("Enter the quantity:"))
r=r+150*d
elif (c==6):
break;
else:
print("Invalid option")
print ("Total food Cost=Rs",r)
print ("\n````LAUNDRY MENU````\n")
print ("1.Jacket----->Rs3","2.Trousers----->Rs4","3.Shirt--->Rs5","4.Jeans----
>Rs6","5.Coat--->Rs8","6.Exit")
t=0
while (1):
e=int(input("Enter your choice:"))
if (e==1):
f=int(input("Enter the quantity:"))
t=t+3*f
elif (e==2):
f=int(input("Enter the quantity:"))
t=t+4*f
elif (e==3):
f=int(input("Enter the quantity:"))
t=t+5*f
elif (e==4):
f=int(input("Enter the quantity:"))
t=t+6*f
elif (e==5):
f=int(input("Enter the quantity:"))
t=t+8*f
elif (e==6):
break;
else:
print ("Invalid option")
print ("Total Laundary Cost=Rs",t,)
print ("\n````GAME MENU````\n")
print ("1.Table tennis----->Rs60","2.Bowling----->Rs80","3.Snooker--->Rs70","4.Video
games---->Rs90","5.Pool--->Rs50==6","6.Exit")
p=0
while (1):
g=int(input("Enter your choice:"))
if (g==1):
h=int(input("No. of hours:"))
p=p+60*h
elif (g==2):
h=int(input("No. of hours:"))
p=p+80*h
elif (g==3):
h=int(input("No. of hours:"))
p=p+70*h
elif (g==4):
h=int(input("No. of hours:"))
p=p+90*h
elif (g==5):
h=int(input("No. of hours:"))
p=p+50*h
elif (g==6):
break;
else:
print ("Invalid option")
print ("Total Game Bill=Rs",p,"\n")
w=int(s)
x=int(r)
y=int(t)
z=int(p)
tot=w+x+y+z
total=int(tot)
mycursor.execute("insert into hotel_cost
values('%s','%d','%d','%d','%d','%d')"%(name,w,x,y,z,tot))
mydb.commit()
elif(ch==3):
name=input("Enter your name:")
mycursor.execute("select * from customer_data where name='"+name+"'")
for i in mycursor:
print(i)
else:
break

Potrebbero piacerti anche