You are on page 1of 29

APROJECTREPORT

ON
SOFTWARE
FOR
HOTELDATAMANAGEMENTSYSTEM

Submi
ttedt
o
Cent
ralBoar
dofSecondar
yEducat
ion,
NewDel
hi

Submi
ttedBy:
- Pr
ojectGui
de:
-
Name:
Boar
dRol
lNo:

MDKARYASR.SEC.PUBLI
CSCHOOLPATHANKOT
SOFTWARE
FOR
HOTELDATAMANAGEMENTSYSTEM

Tool
sUsed

FrontEnd:
- PYTHON
BackEnd:- CSVFILE

Devel
opedAt
MDKARYASR.SEC.PUBLI
CSCHOOLPATHANKOT
CERTI
FICATE

Thi
sto cer
tif
ythatt
he pr
ojectr
epor
tent
ited “
l SOFTWARE
FOR HOTEL DATA MANAGEMENT SYSTEM”submi
tted by …………………………………
dur
ingt
heacademi
cyear2021-
2022i
sabonaf
iedpi
eceofwor
kconduct
ed
under my super
visi
on and gui
dance.The dat
a sour
ces have been dul
y
acknowl
edged.
Iwi
shhi
m/hersuccessi
nal
lhi
s/herf
utur
eendeavour
s.

SUPERVI
SEDBY

(
Pri
nci
pal
) (
Proj
ectGui
de)
PREFACE
PREFACE

Thecomput
ershavegai
nedal
otofi
mpor
tancei
nthepast
f
ivedecades.Mostofourday-
to-
dayj
obsar
ebei
ngi
nfl
uenced
byt
heuseofcomput
ers.Now aday,comput
ersar
eusedf
or
per
for
mingal
mostever
yfunct
ion,whi
ch wer
e per
for
med by
humans i
nthe past
.In some ar
eas such as sci
ence and
t
echnol
ogy,t
arget
s can’
t be achi
eved wi
thout t
he use of
comput
ers.The char
act
eri
sti
cs t
hatmake t
he comput
erso
i
mpor
tant i
ncl
ude i
ts ext
ra or
dinar
y speed,l
arge st
orage
capaci
ty,accur
acyandconsi
stency.

Todaycomput
erspl
ayagr
eatr
olei
nvar
iousi
ndust
riesand
al
argenumberofi
ndust
riesar
eusi
ngcomput
ersf
orvar
ious
appl
icat
ion such as mai
ntai
ning cashbook, sal
es book,
pur
chasebookandot
herbooksofaccount
s.Comput
erscan
al
sobeusedf
ort
hedesi
gni
ngofvar
iouspr
oduct
s.Comput
ers
pr
ovi
demanyopt
ionsf
ort
hedesi
gni
ngofpr
oduct
s.

The anal
ysi
s of t
he pr
ojecthas been under
taken wi
th
ut
most si
ncer
ity and honest
y and we wi
ll be ext
remel
y
sat
isf
iedi
ftheef
for
tisappr
eci
ated.
DEDI
CATI
ON
DEDI
CATI
ON

Dedi
cat
ed
To
Thebr
aveher
o’sofmycount
rywhosacr
ifi
cedt
hei
rli
vesf
orf
reedom,secur
ityand
i
ntegr
ityofmot
herI
ndi
a,upkeepi
ngt
hehonourofourt
ricol
or.
Thei
rfami
lymember
swhosuf
fer
edf
orourf
utur
e.
Mydearpar
ent
sandmyr
espect
edt
eacher
s.
I
NDEX
I
NDEX

1.
Acknowl
edgement

2.
Requi
rement
sAnal
ysi
s

3.Feasi
bil
it
ySt
udy

4.Codi
ng

5.Out
putScr
een

6.Syst
em Speci
ficat
ions

7.Bi
bli
ogr
aphy
ACKNOWLEDGEMENT
ACKNOWLEDGEMENT

It
aket
hisoppor
tuni
tyt
oexpr
essmypr
ofoundsense
of gr
ati
tude and r
espect t
o al
lthose who hel
ped me
t
hroughoutt
hisvent
ure.

Iowe myr
egar
dst
o Mr
/Ms/
Mrs.…………….
.Pr
inci
palofmy
Schoolf
orhi
s/hercooper
ati
onand val
uabl
e suppor
tand
f
orgi
vingust
heoppor
tuni
tyt
ounder
taket
hispr
ojectwor
k
andpr
ovi
dingt
henecessar
yinf
rast
ruct
ure.

Iwoul
dli
ke t
o expr
ess my hear
tfel
tthanks t
o my
r
ever
ed t
eacherMr
/Ms/
Mrs.………….f
orhi
s/herval
uabl
e
gui
dance, encour
agement and suppor
tthr
oughout my
pr
ojectwor
k.Thi
spr
ojecti
shi
svi
sual
iz
ati
onandowesal
ot
ofi
tsf
unct
ional
it
ytoher
.

Lastbutnott
hel
east
,Iowemyover
whel
minggr
ati
tudet
o
myf
ami
lyandf
riendswhogavemeconst
antsuppor
tand
mot
ivat
iont
ocont
inuewi
tht
hisendeavour
.

NameofSt
udent
Requi
rementAnal
ysi
s
Pr
oposedsyst
em

Allt
hefouracti
vit
iesofsyst
emshavebeenaut
omat
edandef
for
tshavebeenmade
t
omi ni
mizethemanualworki
ng.

Benef
itsOfPur
posedSyst
em:
-
1.LessPaperWor
k

Thepaperwor
kisr
educedt
omi
nimall
evel
.Comput
erpr
epar
est
hel
ist
sof
cust
omers.

2.NoManualWor
k.

Ther
eisnomanualwor
k.Al
lthepr
ocessesar
edonet
hroughcomput
er.

3.Recor
dofHot
els.

Ther
eisr
ecor
dofal
ltheHot
elswhogotr
egi
ster
ed.

4.Regi
sterMai
ntenancei
sEasi
er

Registercannoweasi
lybemai
ntai
nedbypr
oduci
ngar
epor
twi
thaf
ormatof
addi
ng
Hotels’recor
ds.

5.Dat
aIsNotScat
ter
ed

Dataisnowstor
edatonepl
ace.Anyi
nfor
mat
ionr
egar
dinganyt
hingcanbe
easi
ly
avai
labl
etotheuser
.

6.User
-fr
iendl
ySof
twar
e

Thesof
twar
eisbemenu-
dri
venandi
sver
yeasyt
ouse.

7.Fl
exi
bil
it
y

Thesyst
em i
smor
efl
exi
blet
hant
hemanualsyst
em bei
ngusedpr
esent
ly.

8.Benef
ici
al

Thesyst
em iseasytouseandreducest
heuser’
sworkloadalot
.Itpr
ovides
t
imel
y
andaccurat
einfor
mationandt
hereisautomat
icgener
ationofr
eports.
FEASI
BILI
TYSTUDY
FEASI
BILI
TYSTUDY

Dur
ingt
hecour
seofcompl
eti
onoft
hispr
ojectwor
k,t
hecompl
eteanal
ysi
sof
pr
oposedsyst
em wasdone.I
ntheanal
ysi
stask,acompl
etecar
eaboutt
hef
easi
bil
it
y
oft
hepr
oposedsyst
em wast
aken.Thef
oll
owi
ngf
easi
bil
it
yanal
yseswer
ecar
riedout
dur
ingt
hecour
seoft
hispr
ojectwor
koncal
lmanagementsyst
em f
orcust
omercar
e:

1.Economi
calf
easi
bil
it
y
2.Techni
calf
easi
bil
it
y
3.Oper
ati
onalf
easi
bil
it
y

Economi
calFeasi
bil
it
y:-
Economi
c anal
ysi
sist
he mostf
requent
ly used met
hod f
oreval
uat
ing t
he
ef
fect
ivenessofacandi
dat
esyst
em.Thepr
oposedsyst
em i
seconomi
cal
lyf
easi
ble
becauset
hebenef
itsandt
hesavi
ngst
hatar
eexpect
edf
rom acandi
dat
esyst
em
out
wei
ght
hecosti
ncur
red.I
nthi
scasewear
eget
tingt
hei
ntangi
blebenef
itsi
nter
ms
ofl
owcostofmai
ntenanceofdat
a,l
essr
edundancyandget
tingt
hequi
ckr
esul
ts.

Techni
calFeasi
bil
it
y:-

Theexi
sti
ngHar
dwar
eandSof
twar
efaci
li
ti
essuppor
tthepr
oposedsyst
em.
Comput
erandst
oragemedi
aar
eavai
labl
eandsof
twar
ecanbedevel
oped.

Har
dwar
econf
igur
ati
on:
a)Pr
ocessor :i
3
b)Memor
y :2GBRAM
c)HDcapaci
ty :500GB

Sof
twar
econf
igur
ati
on:
-
a)Oper
ati
ngsyst
em :Wi
ndows7/
10
b)Backend :csvf
il
es
c)Fr
ontend :Pyt
hon
Ther
eisnot
hingwhi
chi
snott
echni
cal
lyf
easi
ble.
Oper
ati
onalf
easi
bil
it
y:-

Asi
nthecaseofpr
esentsyst
em t
heent
irewor
kisbei
ngdonemanual
ly.Sot
he
dat
abei
ngscat
ter
ed,
inf
ormat
ionr
etr
ievalbecomesdi
ffi
cul
tandmai
ntai
ning
dat
abasei
sal
sover
ytedi
ous.
Incaseofpr
oposedsyst
em,ent
irewor
kwi
llbedone
aut
omat
ical
ly.Sot
heabovedet
ail
sregar
dingt
hef
easi
bil
it
yst
udyshowt
hatt
he
desi
gnoft
hepr
oposedsyst
em i
sver
yef
fect
ive.
CODI
NG
i
mpor tos
i
mpor tcsv
defnewr ecor d():
print("
AddaNewCust omerRecor d")
print("
== ====
======
===="
)
f=open( 'hotel.csv',
'a'
,newli
ne='\r
\n')
s=csv. wr i
ter(f)
i
dno= i
nt (
input (
'Enteridno='
))
name= input (
'Entername= ')
roomno= i
nput (
'Enterroomno= ')
amount =
f l
oat (
input('
Enteramount =')
)
rec= [
idno, name, roomno,amount ]
s.wr i
terow( rec)
f.
close( )
print("
Recor dSaved" )
i
nput ("Pr essanykeyt ocontinue..
")

defupdat er ecor d():


print("Modi fyaCust omerRecor d")
print("=
== ==
===========")
f=open( 'hotel.csv' ,
'r'
,newl ine='\r
\n')
f1=open( 't
emp. csv',
'w' ,
newl ine='\r
\n')
f1=open( 't
emp. csv',
'a',newl i
ne= '\
r\n'
)
r=i
nput ('Enteri dnoyouwantt omodi fy'
)
s=csv. r
eader (f)
s1= csv.wr it
er (
f 1)
forr eci ns:
ifr ec[ 0]==r
:
print (
"i
dno= ",
rec[ 0])
print (
"Name= "
,rec[1] )
print (
"Room No= ",rec[2])
print (
"amount =",rec[ 3])
choi ce= i
nput (
"Doyouwantt omodi fythi
srecor
d(y/
n)"
)
ifchoi ce= ='y'orchoi ce= =
'Y':
i
dno= i
nt (
input ('
Ent erNewi dno= '
))
name= input (
'Ent ernewname= ')
roomno= i
nput ('
Ent err oomno= '
)
amount =fl
oat (i
nput ('
Ent eramount ='
))
rec=[idno, name, r oomno, amount ]
s1.wr i
ter ow( rec)
pr i
nt("
Recor dModi fied")
else:
s1.wr i
ter ow( rec)
el se:
s1.wr iterow( rec)
print (
"Nosuchr ecor df ound" )

f
.cl
ose(
)
f1.
close(
)
os.
remove("
hotel
.
csv"
)
os.
rename("
temp.
csv"
,"
hot
el.
csv"
)

i
nput
("Pr
essanykeyt
ocont
inue.
.
")

defdel eter ecor d():


f=open( 'hotel.csv','r'
,newl i
ne='\r
\n')
f1=open( 't
emp. csv' ,
'w' ,
newl i
ne='\
r\n'
)
f1=open( 't
emp. csv' ,
'a',newl i
ne='
\r\n'
)
r=i
nput ('Enteri dnoyouwantt odelete'
)
s=csv. r
eader (f)
s1=csv. wr it
er (
f1)
forr eci ns:
ifr ec[ 0]==r
:
print (
"i
dno= ",
rec[ 0])
print (
"Name= ",rec[1])
print (
"Room No= ",rec[2])
print (
"amount =",rec[3])
choi ce= i
nput ("Doyouwantt odelet
ethi
srecor
d(y/
n)"
)
ifchoi ce= ='
y'orchoi ce=='
Y':
pass
pr i
nt("
Recor dDel eted")
else:
s1.wr i
ter ow( rec)
else:
s1.wr iterow( rec)
print (
"Nosuchr ecor dfound")
f.
close( )
f1.close( )
os.remove( "hot el.
csv" )
os.rename( "temp. csv" ,
"hotel.
csv")

i
nput
("Pr
essanykeyt
ocont
inue.
.
")

defsear chr ecor d(


):
print
("sear chrecordaRecor d")
print
("======
= =
====
====
===")
f=open('hot el.
csv',
'r
',
newline='\
r\n'
)#Removenewl
inechar
act
erf
rom out
put
r=i
nput (
'Enteri dnoyouwantt osear chr
ecor
d')
s=csv.reader (f)
forreci ns:
ifrec[ 0]==r:
pr i
nt (
"idno=",
rec[0])
pr i
nt (
"Name= "
,r
ec[1])
pr i
nt (
"Room No= "
,r
ec[2])
pr i
nt (
"amount =",
rec[3])
else:
pr i
nt (
"Nosuchr ecordf ound")
f.
close()
i
nput (
"Pr essanykeyt ocont i
nue..
")
deflist
r ecords()
:
print
("ListofAl lRecords")
print
("=====
====
====
===
==="
)
f=open('hotel.
csv',
'r
',
newline=
'\r
\n'
)#Removenewl
inechar
act
erf
rom out
put
s=csv.reader (
f)
forreci ns:
print(rec[0]
,end="
\t\
t")
print(rec[1]
,end="
\t\
t")
print(rec[2]
,end="
\t\
t")
print(rec[3]
)

f
.cl
ose()
i
nput(
"Pressanykeyt
ocont
inue.
.
")

defmai nmenu( ):
choice= 0
whil
echoi ce!=6:
print("\n")
print("Mai nMenu" )
print("=====
== ==
=")
print("1. AddanewCust omerRecord")
print("2. Modi fyExi sti
ngCustomerRecord")
print("3. DeleteExi sti
ngCustomerRecord"
)
print("4. Sear chaRecor d")
print("5. Li
stal lRecor ds")
print("6. Exit")
choi ce= i
nt(input (
'Enteryourchoi
ce'
))
i
fchoi ce= =1:
newr ecor d(
)
eli
fchoi ce= =2:
updat er
ecor d(
)
eli
fchoi ce= =3:
del et erecor d()
eli
fchoi ce= =4:
sear chrecor d()
eli
fchoi ce= =5:
listrecor ds( )
eli
fchoi ce= =6:
pr int("GoodBye" )
br eak
mainmenu( )
OUTPUTSCREENS
SYSTEM SPECI
FICATI
ONS
SYSTEM SPECI
FICATI
ONS

HARDWARESPECI
FICATI
ONS
Thefol
lowi
ngisthehar
dwar
especi
fi
cat
ionoft
hesyst
em onwhi
cht
hesof
twar
ehas
beendevel
oped:
-

Oper
ati
ngSyst
em : Wi
ndows7/
10

Machi
neUsed : i
3Pr
ocessor2.
8GHz
,2GBRAM,
500GBHar
dDi
sk

SOFTWARESPECI
FICATI
ONS
Fr
ontEndUsed : Pyt
hon

BackendUsed : CSVFi
le
BI
BLI
OGRAPHY
BI
BLI
OGRAPHY

Books
 Comput
erSci
encewi
thPyt
hon–Sumi
taAr
ora

WEBSI
TES

 l
adderpyt
hon.com
 w3school
s.com

You might also like