Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
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 .
Software Requirment
Hardware Requirement
.
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")