0% found this document useful (0 votes)
19 views

Poet Writer

Uploaded by

vibhooti849
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)
19 views

Poet Writer

Uploaded by

vibhooti849
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/ 21

A PROJECT REPORT

ON
COMPUTER SCIENCE
“HOTEL BOOKING SYSTEM”
A.I.S.S.C.E. 2024-2025

SUBMITTED BY: SAPTARSHI MAZUMDER


REG. NO:
ROLL NO:

DEPARTMENT OF COMPUTER SCIENCE


TINSUKIA ENGLISH ACADEMY
1
ACKNOWLEDGEMENT

I, Saptarshi Mazumder express my deep sense of gratitude to our


teachers Mr. Bedanta Borah and Ms. Pallabita Chetia for giving
me an opportunity to work under their supervision. It has been
an wonderful experience to work on the project along with my
other project partners.

2
CERTIFICATE
This is to certify that the project titled “HOTEL BOOKING
SYSTEM” submitted by the following students of class XII,
session: 2024-2025, is a bonified work carried out by them under
my guidance. They seemed to be sincere and hardworking during
the development of the project.
Sl. No Name Roll No.

1 Saptarshi Mazumder

2 Partha Pratim Dutta

3 Surabhi Shah

4 Vibhooti Kumar Gupta

_____________ ______________
Signature of the Signature of the
Internal Examiner External Examiner

3
INDEX
CONTENTS PAGE NO.

Introduction 5

Objective of the project 6

Proposed system 7

Source code 8-17

Output 18-19

Conclusion 20
Bibliography 21

4
INTRODUCTION
Hotel Management System deals with the maintenance of a guest’s bill during
one’s stay at the hotel and withal the allocation of rooms for them. It contains
all the basic functions which include entering customer’s data, calculating room
rent, restaurant bill, game bill, laundry bill, and total cost. In this mini system,
there is no much login system. This means that he/she can use all those
available features easily without any restrictions. It is too easy to use as he/she
can check the total cost of staying in the hotel cost of staying in the hotel easily
with each and every detail.

Talking about the features of this simple Hotel Management System, at first, the
user has to enter his/her data. It includes the name of the user, address, check-
in and check-out dates. The user can calculate room rents. Inside this section,
there are total four types of room with different prices. After selecting the room
type, the system asks to enter the number of nights spent in order to calculate
room rent. It contains other functions such as calculating restaurant laundry and
game bill. When the user selects to calculate restaurant bill, the system displays
a small menu. From there the user has to select foods and then it displays the
total restaurant bill. The other remaining features also follow the same
procedure as of calculating restaurant bill.

At last, after all these calculations the user can know about their total cost of
staying easily. In this feature, the system provides his/her details, with room
number, room rent, food, laundry and game bills. The total sum is displayed to
the users with some additional charges. This Hotel management System
provides the simplest management of hotel service and transaction.

5
OBJECTIVES OF THE PROJECT
The objectives of this project is to let the students apply the
programming knowledge into a real-life situation/problem and expose
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
projects.
4. Students will demonstrate a breadth of knowledge in computer
science, as exemplified in the areas of systems, theory and
software development.
5. Students will demonstrate ability to conduct a research or applied
computer science project, requiring writing and presentational
skills which exemplify scholarly style in computer science.

6
PROPOSED SYSTEM
In our proposed system, we have the provision for adding details and
requirements of the customer by themselves. So the overhead of the
hotel management and the employees become less. The customer can
use all those available features easily without any restriction. It is too
easy to use; the customer can check the total cost of staying in the
hotel easily with and every detail. It also manages the bill of the
customer felicitously without any mismatches.

Our proposed system has many advantages:


❖ The system enables easy and fast access to the guest files.
❖ The system provides better data management system.
❖ The system provides security measures to access to the hotel’s
information lowering data security threats.
❖ Easy update of the guest record.
❖ Reduction of data entry and processing errors.
❖ Greatly reduce paper use at the hotel.

7
SOURCE CODE
#SQL CODE
DBMS: MYSQL
HOST: LOCAL HOST
USER: ROOT
PASSWORD: ROOT
DATABASE: HOTEL

TABLE STRUCTURE: AS GIVEN BELOW

8
create database hotel;
use hotel;
create table custdata (custname char(20), address varchar(50), indate
varchar(20), outdate varchar(20));

create table roomtype (sno int, roomtype varchar(10), rent bigint);


insert into roomtype values (1, ‘type A’, 1000);
insert into roomtype values (2, ‘type B’, 2000);
insert into roomtype values (3, ‘type C’, 3000);
insert into roomtype values (4, ‘type D’, 4000);

create table restaurant (sno int, itemname char(20), rate bigint);


insert into restaurant values(1, ‘tea’, 10);
insert into restaurant values(2, ‘coffee’, 10);
insert into restaurant values(3, ‘colddrink’, 20);
insert into restaurant values(4, ‘samosa’, 10);
insert into restaurant values(5, ‘sandwich’, 50);
insert into restaurant values(6, ‘dhokla’, 30);
insert into restaurant values(7, ‘kachori’, 10);
insert into restaurant values(8, ‘milk’, 20);
insert into restaurant values(9, ‘noodles’, 50);
insert into restaurant values(10, ‘pasta’, 50);

create table laundry (sno int, itemname char(10), rate int);


insert into laundry values(1, ‘pant’, 10);
insert into laundry values (2, ‘shirt’, 10);
insert into laundry values (3, ‘suit’, 10);
insert into laundry values (4, ‘sari, 10);

9
========================================================

#PYTHON CODE
import os
import platform
import mysql.connector
import pandas as pd
import datetime
global z
mydb= mysql.connector.connect(user=’root’, password=’abha’,
host= ‘localhost’,
database= ‘hotel’)
mycursor= mydb.cursor()

def registercust():
l= []
name= input(“enter name:”)
l.append(name)
addr= input(“enter address:”)
l.append(addr)
indate= input(“enter check in date:”)
l.append(indate)
outdate= input(“enter check out date:”)
l.append(outdate)
cust= (l)
sql=“insert into custdata(name, addr, indate, outdate)values(%s, %s, %s, %s)”
mycursor.execute(sql,cust)
mydb.commit()
10
def roomtypeview():
print(“do you want to see room type available: enter 1 for yes:”)
ch=int(input(“enter your choice”))
if ch==1:
sql=”select * from roomtype”
mycursor.execute(sql)
rows= mycursor.fetchall()
for x in rows:
print(x)
def roomrent():
print(“we have the following rooms for you:-“)
print(“1.type A---->rs1000PN\-“)
print(“2.type B---->rs2000PN\-“)
print(“3.type C---->rs3000PN\-“)
print(“4.type D---->rs4000PN\-“)
x=int(input(“enter your choice please->”))
n=int(input(“for how many nights did you stay:”))
if(x==1):
print(“you have opted room type A”)
s=1000*n
elif(x==2):
print(“you have opted room type B”)
s=2000*n
elif(x==4):
print(“you have opted room type C”)
s=4000*n
else:
print(“please choose a room”)
print(“your room rent is=”, s,”\n”)
11
def restaurantmenuview():
print(“do you want to see menu available” enter 1 for yes:”)
ch=int(input(“enter your choice:”))
if ch==1:
sql=”select * from restaurant”
mycursor.execute(sql)
rows= mycursor.fetchall()
for x in rows:
print(x)

def orderitem():
global s
print(“do you want to see menu available: enter 1 for yes:”)
ch= int(input(“enter your choice:”)
if ch==1:
sql=”select * from restaurant”
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)

print(“do you want to purchase from the above list: enter your choice:”)
d=int(input(“enter your choice:”))
if(d==1):
print(“you have ordered tea”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for tea is:”, s,”\n”)

12
elif(d==2):
print(“you have ordered coffee”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for coffee is:”, s,”\n”)

elif(d==3):
print(“you have ordered colddrink”)
a=int(input(“enter quantity”))
s=20*a
print(“your amount for colddrink is:”, s,”\n”)

elif(d==4):
print(“you have ordered samosa”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for samosa is:”, s,”\n”)

elif(d==4):
print(“you have ordered samosa”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for samosa is:”, s,”\n”)

elif(d==5):
print(“you have ordered sandwich”)
a=int(input(“enter quantity”))
s=50*a
13
print(“your amount for sandwich is:”, s,”\n”)

elif(d==6):
print(“you have ordered dhokla”)
a=int(input(“enter quantity”))
s=30*a
print(“your amount for dhokla is:”, s,”\n”)

elif(d==7):
print(“you have ordered kachori”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for kachori is:”, s,”\n”)

elif(d==7):
print(“you have ordered kachori”)
a=int(input(“enter quantity”))
s=10*a
print(“your amount for kachori is:”, s,”\n”)

elif(d==8):
print(“you have ordered milk”)
a=int(input(“enter quantity”))
s=20*a
print(“your amount for milk is:”, s,”\n”)

elif(d==9):
print(“you have ordered noodles”)
a=int(input(“enter quantity”))
14
s=50*a
print(“your amount for noodles is:”, s,”\n”)

elif(d==10):
print(“you have ordered pasta”)
a=int(input(“enter quantity”))
s=50*a
print(“your amount for pasta is:”, s,”\n”)
else:
print(“please enter your choice from the menu”)

def laundrybill():
global z
print(“do you want to see rate for laundry: enter 1 for yes:”)
ch=int(input(“enter your choice”))
if ch==1:
sql=”select * from laundry”
mycursor.execute(sql)
rows=mycursor.fetchall()
for x in rows:
print(x)
y=int(input(“enter your number of clothes->”))
z=y*10
print(“your laundry bill:”, z,”\n”)
return z
def lb():
print(z)
def res():
print(s)
15
def viewbill():
a=input(“enter customer name:)
print(“customer name:”, a,”\n”)
print(“laundry bill:”)
print(lb)
print(“restaurant bill:”)
print(res)
def menuset():
print(“enter 1: to enter customer data”)
print(“enter 2: to view roomtype”)
print(“enter 3: for calculating room bill”)
print(“enter 4: for viewing restaurant menu”)
print(“enter 5: for restaurant bill”)
print(“enter 6: for laundry bill”)
print(“enter 7: for complete bill”)
print(“enter 8: for exit:”)
try:
userinput=int(input(“please select any of the above option:”))
except ValueError:
exit(“\n hi that’s not a number”)

userinput=int(input(“enter your choice”))


if(userinput==1):
registercust()
elif(userinput==2):
roomtypeview()
elif(userinput==3):
roomrent()
elif (userinput=4):
16
restaurantmenuview()
elif(userinput==5):
orderitem()
elif(userinput==6):
laundrybill()
elif(userinput==7):
viewbill()
elif(userinput==8):
quit()
else:
print(“enter correct choice”)
Menuset()

def runagain():
runagn=input(“\n want to run again y/n:”)
while(runagn.lower()==’y’):
if(platform.system()==”windows”):
print(os.system(‘cls’))
else:
print(os.system(‘clear’))
Menuset()
runagn= input(“\n want to run again y/n:”)
runagain()

17
OUTPUT

18
19
CONCLUSION
This software is developed in partial fulfillment of the Computer
Science Practical Project for the A.I.S.S.C.E. – 2024-2025. During the
project work it is always felt that something more could be added to its
functionality. There is a huge prospect for the development of the
software. But keeping the limited time and coverage of the A.I.S.S.C.E.
syllabus in mind, this could not be developed further.

This copy of software has been tested in Windows 7, Windows 10 and


Windows 11 operating systems.

20
BIBLIOGRAPHY
Books
• Computer Science for class XII – By Sumita Arora

Websites
• https://www.w3schools.com/
• https://cbseacademic.nic.in/

21

You might also like