Download as pdf or txt
Download as pdf or txt
You are on page 1of 34

AISSCE : 2022 – 2023

PROJECT REPORT ON

HOTEL
MANAGEMENT
SYSTEM IN PYTHON

CLASS : XII
STREAM : SCIENCE
SUBJECT : COMPUTER SCIENCE
SUBJECT CODE : 083
PROJECT GUIDE : Ms. SAYANI HAZRA PAL
PGT (CS)
CERTIFICATE

This is to certify that RITABRATA DAS, Roll No.____________

has successfully completed the project work entitled HOTEL

MANAGEMENT SYSTEM in the subject Computer Science (083)

laid down in the regulations of CBSE for the purpose of Practical

Examination in class XII to be held on ___________.

______________________ _____________________
Mrs. MADHUMITA SINGH Ms. SAYANI HAZRA PAL
(Principal) (Internal Examiner)

_______________________
External Examiner
Acknowledgement
It is really amazing to try figuring out that the lion share of this
world’s businesses are handled by computers, or more specifically,
computing devices alone. The technology has been soaring so high
lately that human involvement in many of these trades are considered
to be solely intrusive. And yes, so says the facts. Practically, humans
are left with the part of making algorithms (or programs) that run on
several software pre-installed on the device, and often some manual
works of data entry.

This investigatory project on Hotel Management System


accounts for another code which can be self sufficient as software
provided some practicalities be installed into it, which is currently
beyond our knowledge and the scope of the syllabus as well.

In this really enjoyable journey, I would like to thank the other


two members of my group for their support, cooperation and active
participation. Without them, this mission would never have been
fulfilled.

It would rather be impossible to end this note without thanking


honourable Principal Ma’am Mrs. Madhumita Singh for her non-
ceasing encouragement and help. I would also like to thank our
computer teacher and project guide Ms. Sayani Hazra Pal for
allowing us to pursue this trail and providing an incessant support.

RITABRATA DAS
CLASS – XII (SCIENCE)
CONTENTS

Sl. Page
DESCRIPTION
No. No.

1. INTRODUCTION 1

2. OBJECTIVES OF THE PROJECT 2

3. SYSTEM REQUIRMENT 2

4. SYSTEM DESIGN AND FLOW CHARTS 3-5

5. FUNCTIONS & TEXT FILES USED 6

6. SOURCE CODE 7 - 20

7. OUTPUT 21 - 27

8. SCOPE 28

9. LIMITATIONS 28

10. CONCLUSION 29

11. BIBLIOGRAPHY 30
INTRODUCTION

The Hotel Management system deals with registration in the site of a

hotel that has two branches, namely Royal Stay in Mumbai and Taj

Palace in Chennai. The code offers to enter the customer name and

their details like address, Mobile Number etc., which are further

stored in tables under a database in MySQL. The code also offers

several other features like addition of new records, updation and

deletion of old records, and generation of bill of a customer.

1
OBJECTIVES OF THE PROJECT

The objective of this project is to let the students apply the


programming knowledge into a real-world situation/problem
and exposed the students how programming skills helps in
developing a good software.

1. Write programs utilizing modern software tools.


2. Apply object oriented programming principles
effectively when developing small to medium sized
projects.

3. Write effective procedural code to solve small to


medium sized problems.

R E Q U I R E M E N T S
 Hardware Required

 Printer, to print the required documents of the


project
 Compact Drive
 Processor : Intel
 RAM : 512 MB or more than 512 MB
 Hard Disk : 80 GB or more than 80 GB

 Software Required

 Operating System : Windows 7


 Python IDLE
 My SQL

2
3
4
5
FUNCTIONS & TEXT FILES USED
A. Developed Functions
1. Add() – Takes all details of a new customer as input and stores it
with associated customer ID in the parent database.
2. Search() – Asks for a customer key. If the key is valid, it shows all
details of that customer, otherwise returns error.
3. Display() – Displays all available records present in the parent
database currently.
4. Edit() – Initially, it displays all the records, similar to the Display()
function. It, then, asks for the customer ID whose details are to be
edited. New values are taken as input and corresponding changes
are made. The final records are shown.
5. Delete() – Shows all records before deletion. Asks for the
customer ID of the record to be deleted. Deletes the record and
prints the deleted record again.
6. Generate() – Calculates the net payable amount of each customer
and includes corresponding taxes.
B. Built-in functions & Methods
1. str.center(<no_of_char>,<spacing_unit>) – Used to shift the
string to the right by declared no. of spacing units.
2. <cursor_object>.is_connected – Checks connection of Python
with database.
3. <file_handle>.read(n) – Reads specified no. of bytes from the file
connected by specified file handle.
4. <query>.format() – Method of formatting in MySQL using Python
code.
5. <conn_object>.cursor – Sets up the cursor object for the database
in Python.
6. <cursor_object>.fetchall() – Retrieves all data stored in the cursor
object.
7. <conn_object>.commit() – Ensures that the query executed has
functioned effectively.
C. Text Files Used
1. RoyalStay.txt – The text file gives the description along with the
address of the Hotel Royal Stay in Mumbai. The file also discusses
the facilities and prospects of the hotel.
2. TajPalace.txt – This text file comes with similar features as
RoyalStay.txt but applies to Hotel Taj Palace in Chennai.
6
SOURCE CODE
#Project on Hotel Reservation System - Python-MySQL connectivity
import mysql.connector

print('\n')
print("======================================D.A.V. PUBLIC SCHOOL,KOLKATA
============================ ")
print('\n')
print("================================HOTEL RESERVATION SYSTEM
==============================")
print('\n')
hh= "This project has been created by following students of Class XII-Science"
kk="Abhishek Ray"
tt="Joyosmit Pal"
rr="Ritabrata Das"
print(' '*66,hh)
print(kk.center(239,' '))
print(tt.center(239,' '))
print(rr.center(239,' '))
print()

x=input("Enter your mysql password (maintain the case)...")


mydb=mysql.connector.connect(host="localhost",user="root", passwd=x)
mycur=mydb.cursor( )
mycur.execute("CREATE database if not exists dbproject")
mycur.execute("USE dbproject")
if mydb.is_connected():
print('You are successfully connected to our server. Thank you for logging in!')

hotelchoice=input('Enter the location of your choice (Mumbai/Chennai)...')


if hotelchoice=="Mumbai":
print()
with open(r'C:\Users\Ritabrata\Desktop\RoyalStay.txt' ,'r') as file:
fh= file.read()
print(fh)
print()
def add():
ch='y'
while ch=='y' or ch=='Y':
cust_id = int(input("\nEnter The Customer id: "))
cust_name = input("Enter the Customer name: ")
address = input("Enter The Address: ")
room_no = int(input("Enter The Room No: "))
mobile_no = int(input("Enter The Mobile No: "))

7
check_in = input("Enter the Check In Date (YYYY-MM-DD): ")
check_out = input("Enter Check Out Date (YYYY-MM-DD): ")
adv_payment = float(input("Enter the Advance Amt: "))
room_type = int(input("Room Type:-\n1:Suite (Rs.1500 /day) \n2:Delux (Rs. 1000 /
day) \n3: Standard (Rs. 500/day)"))
if room_type==1:
room_type="Suite"
elif room_type==2:
room_type="Delux"
elif room_type==3:
room_type="Standard"
else:
print("Enter the correct Choice")

st="INSERT INTO hotel VALUES({},'{}','{}',{},{},'{}','{}',{},'{}')"


query=(st.format(cust_id, cust_name, address, room_no, mobile_no, check_in,
check_out, adv_payment, room_type))
mycur.execute(query)
mydb.commit()
print("\nCustomer record inserted\n")
ch=input("Want to Add more records(y/n): ")

def search():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS", database="dbproject")
mycur = mydb.cursor()
cno = int(input("Enter the Customer id: "))
st= "Select * from hotel where cust_id={}"

query=st.format(cno)
print("==========================================")
mycur.execute(query)
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

8
print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',
'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')
def display():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS",database="dbproject")
mycur=mydb.cursor()
mycur.execute("Select * from hotel")

print("==========================================")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

def edit():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS", database="dbproject")
mycur=mydb.cursor()
mycur.execute("Select * from hotel")
print("==========================================")
print("Before Updation")
myrec=mycur.fetchall()
for x in myrec:
cust_id=x[0]
cust_name=x[1]
address=x[2]
room_no=x[3]
mobile_no=x[4]
check_in=x[5]
check_out=x[6]
adv_payment=x[7]
room_type=x[8]
9
print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',
'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')
cust_id=int(input("Enter Customer id whose record is to be Updated: "))
print("Enter the new data\n")
cust_name = input("Enter Customer name: ")
address = input("Enter Address: ")
room_no = int(input("Enter Room No: "))
mobile_no = int(input("Enter Mobile No: "))
check_in = input("Check In Date (YYYY-MM-DD): ")
check_out = input("Check Out Date (YYYY-MM-DD): ")
adv_payment = float(input("Enter the Advance Amt paid: "))
room_type = int(input("Room Type:-(1:Suite 2: Deluxe 3:Common)"))

if room_type==1:
room_type = "Suite"
elif room_type==2:
room_type = "Deluxe"
elif room_type==3:
room_type = "Standard"
else:
print("Enter your Choice")

mycur=mydb.cursor()
st="""Update hotel set cust_name='{}',address='{}',room_no={},
mobile_no={},check_in='{}',check_out='{}',adv_payment={},room_type='{}'where
cust_id={}"""
query =
st.format(cust_name,address,room_no,mobile_no,check_in,check_out,adv_payment,roo
m_type,cust_id)
mycur.execute(query)
mydb.commit()
mycur.execute("Select * from hotel")
print("==========================================")
print("After Update")
myrec = mycur.fetchall()

for x in myrec:
cust_id=x[0]
cust_name=x[1]
address=x[2]
room_no=x[3]
mobile_no=x[4]
check_in=x[5]
check_out=x[6]
adv_payment=x[7]
room_type=x[8]
10
print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',
'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')
def delete():
mydb=mysql.connector.connect(host="localhost",user="root",
passwd="ritabrata_2004DAS",database="dbproject")
mycur=mydb.cursor()

mycur.execute("Select * from hotel")


print("==========================================")
print("Before Deletion")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

cust_id=int(input("Enter the Customer id: "))


st="Delete from hotel where cust_id={}"
query=st.format(cust_id)
mycur.execute(query)
mydb.commit()

print("Record Deleted")
mycur.execute("Select * from hotel")
print("==========================================")

print("After Deletion")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]

11
mobile_no = x[4]
check_in = x[5]
check_in = x[6]
adv_payment = x[7]
room_type = x[8]
print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',
'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

def generate():
Tax=0
mydb=mysql.connector.connect(host="localhost",user="root",
passwd="ritabrata_2004DAS",database="dbproject")
mycur=mydb.cursor()

cust_id=int(input("Enter the Customer id: "))


st= """ SELECT cust_id,cust_name,address,room_no,mobile_no,check_in,check_out,
adv_payment,room_type,dayofyear(check_out)-dayofyear(check_in) as days_stayed
from hotel where cust_id={}"""
query=st.format(cust_id)
mycur.execute(query)
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]
days = x[9]

print('=================================================')
print(" HOTEL ROYAL STAY")
print()
print(" 34, MIDC Central Road, Mumbai ")
print('=================================================')
print("Customer No. ...",cust_id)
print("Customer Name ...",cust_name)
print("Customer Address ...",address)
print('=================================================')
print("Room No ...", room_no)
print("Mobile No ...", mobile_no)
print('=================================================')

12
print("Check In Date...", check_in)
print("Check Out Date...", check_out)
print("Room Type ...", room_type)
print('=================================================')
print("No. of Days...", days)
if room_type == "Suite":
price = 1500
elif room_type=="Deluxe":
price = 1000
else:
price = 500

Total = days*price
print("Total", Total)
print("Advance", adv_payment)
Tax = Total*0.18
print("Tax: ",Tax)
net = (float(Total)+float(Tax))-float(adv_payment)
netamt = float(Total)+float(Tax)
print("Net Amount",netamt)
print("Total Amount Payable ",net)

ch = 'y'
while ch=='y' or ch=='Y':
print("======================================")
print("MENU")
print("1. To Add a New Record")
print("2.To Search a Record")
print("3.To Update a Record")
print("4.To Delete a Record")
print("5.To View all the Records")
print("6.To Generate the Bill\n")
print("======================================")

flag=int(input("Enter your choice: "))


Tax=0
if flag==1:
add()
elif flag==2:
search()
elif flag==3:
edit()
elif flag==4:
delete()
elif flag==5:
display()
elif flag==6:
generate()

13
ch=input("Want to display Main Menu? (y/n)...")
print("==========================================")
print('\n')
print('Thank you for visiting our hotel! If you have liked our service, please go to our
website www.splendidparadormumbai.com and give your ratings!')
elif hotelchoice=="Chennai":
print()
with open(r'C:\Users\Ritabrata\Desktop\TajPalace.txt' ,'r') as file1:
fhc= file1.read()
print(fhc)
print()
def Add():
ch='y'
while ch=='y' or ch=='Y':
cust_id = int(input("\nEnter The Customer id: "))
cust_name = input("Enter the Customer name: ")
address = input("Enter The Address: ")
room_no = int(input("Enter The Room No: "))
mobile_no = int(input("Enter The Mobile No: "))
check_in = input("Enter the Check In Date (YYYY-MM-DD): ")
check_out = input("Enter Check Out Date (YYYY-MM-DD): ")
adv_payment = float(input("Enter the Advance Amt: "))
room_type = int(input("Room Type:-\n1:Suite (Rs.1500 /day) \n2:Delux (Rs. 1000 /
day) \n3: Standard (Rs. 500/day)"))
if room_type==1:
room_type="Suite"
elif room_type==2:
room_type="Delux"
elif room_type==3:
room_type="Standard"
else:
print("Enter the correct Choice")

st="INSERT INTO d_hotel VALUES({},'{}','{}',{},{},'{}','{}',{},'{}')"


query=(st.format(cust_id, cust_name, address, room_no, mobile_no, check_in,
check_out, adv_payment, room_type))
mycur.execute(query)
mydb.commit()
print("\nCustomer record inserted\n")
ch=input("Want to Add more records(y/n): ")

def Search():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS", database="dbproject")
mycur = mydb.cursor()
cno = int(input("Enter the Customer id: "))
st= "Select * from d_hotel where cust_id={}"

14
query=st.format(cno)
print("==========================================")
mycur.execute(query)
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

def Display():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS",database="dbproject")
mycur=mydb.cursor()
mycur.execute("Select * from d_hotel")

print("==========================================")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

15
def Edit():

mydb=mysql.connector.connect(host="localhost",user="root",passwd="ritabrata_2004D
AS", database="dbproject")
mycur=mydb.cursor()
mycur.execute("Select * from d_hotel")
print("==========================================")
print("Before Updation")
myrec=mycur.fetchall()

for x in myrec:
cust_id=x[0]
cust_name=x[1]
address=x[2]
room_no=x[3]
mobile_no=x[4]
check_in=x[5]
check_out=x[6]
adv_payment=x[7]
room_type=x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

cust_id=int(input("Enter Customer id whose record is to be Updated: "))


print("Enter the new data\n")
cust_name = input("Enter Customer name: ")
address = input("Enter Address: ")
room_no = int(input("Enter Room No: "))
mobile_no = int(input("Enter Mobile No: "))
check_in = input("Check In Date (YYYY-MM-DD): ")
check_out = input("Check Out Date (YYYY-MM-DD): ")
adv_payment = float(input("Enter the Advance Amt paid: "))
room_type = int(input("Room Type:-(1:Suite 2: Deluxe 3:Common)"))

if room_type==1:
room_type = "Suite"
elif room_type==2:
room_type = "Deluxe"
elif room_type==3:
room_type = "Standard"
else:
print("Enter your Choice")

16
mycur=mydb.cursor()
st="""Update d_hotel set cust_name='{}',address='{}',room_no={},
mobile_no={},check_in='{}',check_out='{}',adv_payment={},room_type='{}'where
cust_id={}"""
query =
st.format(cust_name,address,room_no,mobile_no,check_in,check_out,adv_payment,roo
m_type,cust_id)

mycur.execute(query)
mydb.commit()
mycur.execute("Select * from d_hotel")
print("==========================================")
print("After Update")
myrec = mycur.fetchall()
for x in myrec:
cust_id=x[0]
cust_name=x[1]
address=x[2]
room_no=x[3]
mobile_no=x[4]
check_in=x[5]
check_out=x[6]
adv_payment=x[7]
room_type=x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

def Delete():
mydb=mysql.connector.connect(host="localhost",user="root",
passwd="ritabrata_2004DAS",database="dbproject")
mycur=mydb.cursor()

mycur.execute("Select * from d_hotel")


print("==========================================")
print("Before Deletion")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]

17
check_out = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

cust_id=int(input("Enter the Customer id: "))


st="Delete from d_hotel where cust_id={}"
query=st.format(cust_id)
mycur.execute(query)
mydb.commit()

print("Record Deleted")
mycur.execute("Select * from d_hotel")
print("==========================================")

print("After Deletion")
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_in = x[6]
adv_payment = x[7]
room_type = x[8]

print('cust_id', 'cust_name', 'address', '\troom_no', 'mobile_no', 'check_in',


'\tcheck_out', '\tadv_payment', 'room_type',sep='\t')
print(cust_id, cust_name, address, room_no, mobile_no, check_in, check_out,
adv_payment,' '*3,room_type,sep='\t')

def Generate():
Tax=0
mydb=mysql.connector.connect(host="localhost",user="root",
passwd="ritabrata_2004DAS",database="dbproject")
mycur=mydb.cursor()

cust_id=int(input("Enter the Customer id: "))


st= """ SELECT cust_id,cust_name,address,room_no,mobile_no,check_in,check_out,
adv_payment,room_type,dayofyear(check_out)-dayofyear(check_in) as days_stayed
from d_hotel where cust_id={}"""

18
query=st.format(cust_id)
mycur.execute(query)
myrec=mycur.fetchall()

for x in myrec:
cust_id = x[0]
cust_name = x[1]
address = x[2]
room_no = x[3]
mobile_no = x[4]
check_in = x[5]
check_out = x[6]
adv_payment = x[7]
room_type = x[8]
days = x[9]

print('=================================================')
print(" HOTEL TAJ PALACE")
print()
print(" 47/A, Mount Road, Chennai ")
print('=================================================')
print("Customer No. ...",cust_id)
print("Customer Name ...",cust_name)
print("Customer Address ...",address)
print('=================================================')
print("Room No ...", room_no)
print("Mobile No ...", mobile_no)
print('=================================================')
print("Check In Date...", check_in)
print("Check Out Date...", check_out)
print("Room Type ...", room_type)
print('=================================================')
print("No. of Days...", days)

if room_type == "Suite":
price = 1500
elif room_type=="Deluxe":
price = 1000
else:
price = 500

Total = days*price
print("Total", Total)
print("Advance", adv_payment)
Tax = Total*0.18
print("Tax: ",Tax)
net = (float(Total)+float(Tax))-float(adv_payment)
netamt = float(Total)+float(Tax)

19
print("Net Amount",netamt)
print("Total Amount Payable ",net)

ch = 'y'
while ch=='y' or ch=='Y':
print("======================================")
print("MENU")
print("1. To Add a New Record")
print("2.To Search a Record")
print("3.To Update a Record")
print("4.To Delete a Record")
print("5.To View all the Records")
print("6.To Generate the Bill\n")
print("======================================")

flag=int(input("Enter your choice: "))


Tax=0
if flag==1:
Add()
elif flag==2:
Search()
elif flag==3:
Edit()
elif flag==4:
Delete()
elif flag==5:
Display()
elif flag==6:
Generate()

print("==========================================")
ch=input("Want to display Main Menu? (y/n)...")

print('\n')
print('Thank you for visiting our hotel! If you have liked our service, please go to our
website www.splendidparadorkolkata.com and give your ratings!')

20
OUTPUT

SCREEN 1: THE HOME PAGE

SCREEN 2: INSERTING A RECORD

21
SCREEN 3: INSERTING ANOTHER RECORD

SCREEN 4: SEARCHING FOR A RECORD

22
SCREEN 5: UPDATING A RECORD

SCREEN 6: DELETION OF A RECORD

23
SCREEN 7: VIEWING ALL THE RECORDS

SCREEN 8: GENERATING THE REPORT (I)

24
SCREEN 9: GENERATING THE REPORT (II)

SCREEN 10: TABLE HOTEL IN DATABASE DBPROJECT (LOCATION: MUMBAI) AS VIEWED IN SQL

25
SCREEN 11: THE D_HOTEL TABLE IN DBPROJECT (LOCATION: CHENNAI) AS VIEWED IN SQL

SCREEN 12: FINAL DATA IN THE TWO TABLES AS VIEWED IN SQL

26
SCREEN 13: FILE SHOWING DESCRIPTION OF THE HOTEL AT MUMBAI

SCREEN 14: FILE SHOWING DESCRIPTION OF THE HOTEL IN CHENNAI

27
SCOPE
• This is a very efficient way of handling the Hotel records.
• Helps to record the information and seek security.
• Easy to register any new name of staff easily.
• Simple way of managing all records and manipulating
them.
• Less time consuming.

LIMITATIONS

 This system is suitable for only small hotels.


 Online facility is not available
 This system only provides text-based interface, which is
not as user-friendly as graphical interface.
 Since the system is implemented manually, so the
response is slow.

28
CONCLUSION

This software is efficient in maintaining customer details and

can easily perform operations to handle the database which

stores related data. This software reduces the work load on

other members of the hotel and also ensures better

coordination between the two branches. This system has the

potential to flourish as a promising software, have the

limitations mentioned earlier been successfully overcome.

29
BIBLIOGRAPHY

Great help from our faculty members and my project


guide led to the successful completion of this project. Besides,
I took the help of some books and websites to develop the
project:

1. Computer science With Python – Class XII by Sumita Arora


2. https://www.w3resource.com/
3. https://www.geeksforgeeks.org/
4. https://www.schand.org/

30

You might also like