Upload
naman-sethi
View
218
Download
0
Embed Size (px)
Citation preview
8/12/2019 Railway Theory
1/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
A
Project reportn
!USING C""#
S$%&itte' to(
KURUKS)*TRA UNI+*RSIT,
KURUKS)*TRA
IN T)* PARTIAL FULFILL*NT F R*.UIR**NT FRT)*
BAC)*LR F SCI*NC*!INFRATIN T*C)NLG,#
Se&ester +IS*SSIN !/012-/013#
Un'er t4e s$pervision o5(
s6 S$r%4i A77arwalLect$rer8*PTT6 F IT
S$%&itte' %y(
An9it G$pta
B6Sc -IT !Final#Roll No6 ( 111:/2Univ6RollNo611/1//:0/;
8epart&ent o5 In5or&ation Tec4nolo7yUKAN8 LAL NATINAL
CLL*G*,AUNA NAGAR - 12:001
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
2/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
C*RTIFICAT*FR
SUP*R+ISR
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
3/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
UKAN8 LAL NATINALCLL*G*
,AUNA NAGAR - 12:001!NAAC A" GRA8*8#
T $sin7 C"" $n'er &y
s$pervision6
It is 5$rt4er certi5ie' t4at t4e project wor9 is can'i'ate?s own wor9 an' is not
s$%&itte' to else w4ere 5or any ot4er p$rpose6
I wis4 4er s$ccess in 4i& 5$t$re6
iss6S$r%4i A77arwal
Lect$rer@ 8eptt6 5 I6T66L6NColle7e,a&$naNa7ar !)r6#
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
4/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
C*RTIFICAT*
FR
CLL*G*
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
5/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
UKAN8 LAL NATINALCLL*G*
,AUNA NAGAR - 12:001!NAAC A" GRA8*8#
T
8/12/2019 Railway Theory
6/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
ACKN
8/12/2019 Railway Theory
7/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
ACKN
8/12/2019 Railway Theory
8/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
IN8*D
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
9/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
IN8*D
S6N6 Partic$lars Pa7e No6
16 C*RTIFICAT* FR SUP*R+ISR
/6 ACKN
8/12/2019 Railway Theory
10/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
INTR8UCTIN
T
TPIC
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
11/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
INTR8UCTIN T TPIC
T4is is a project $sin7 w4ic4 we can reserve t4e seats o5 a rail w4ic4
is to %e 7one 5or a visit6 T4is wo$l' 4elp in airlines to reserve any seat as we
can reserve a seat in railway 5or a jo$rney as well as in t4is we can reserve
o$r seat in plane jo$rney6 T4is is $se' to &aintain t4e 'ata o5 t4e passen7er
its co'e an' also t4e tic9et n$&%er 5or t4e rail so t4at we can con5ir& t4e
reservation wit4in ti&e6
F$nctions o5 t4is reservation syste& can %e s$&&e' $p in t4e
5ollowin7 points(-
16 It can %e $se' to reserve t4e seat 5or a passen7er6
/6 It can %e $se' to $ery t4e 'ata or t4e reservation i5 we want to $ery
5or any anot4er passen7er i5 t4e person want to c4ec9 5or any $ery
t4en t4e person can easily c4ec9 5or it %y enterin7 t4e na&e an' co'e
o5 rail 6
26 T4ere is also possi%ility o5 cancellation o5 seat 6
36 It is $se' 5or viewin7 t4e reservation 'etail o5 a sin7le c$sto&er6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
12/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
INTR8UCTIN
TPRE*CT
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
13/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
INTR8UCTIN T T)* PRE*CT
Railway Reservation Syste& are very $se5$l 5or airline area6 T4is
wo$l' 4elp t4e a$t4orities an' ot4er concerne' people to wor9 5ast6 T4is
wo$l' also 4elp to &aintain t4e 'ata o5 t4e person to %e visitin7 t4e airlines
an' also t4is wo$l' %e 4elp to provi'e t4e in5or&ation to t4e ot4er concerne'
area 5or t4e reservation@ cancellation an' &o'i5ication6
In Reservation syste& all wor9 is 'one &an$ally6 A en' $seJcler9
can only reserve t4e tic9et an' t4is only can %e con5ir& 5ro& 4i&6 By
co&p$terition syste& t4is can %e centralise' an' as t4is can %e $se' 5or
reservation as well as t4e w4ole 'ata can %e trans&itte' to ot4er a$t4orities
5or c4ec9in7 t4e ot4er 5or&alitie6
Beca$se w4ile travellin7 t4ro$74 airlines it is necessary to 7et t4e
passport 4ence t4ere is entry o5 passport n$&%er t4en t4e place co'e is 7iven
%y w4ic4 t4e person 4ave to %e travellin7@ 4ence t4e 'ata can %e &aintain
%eca$se t4e co'e will 'isplay t4e in5or&ation a%o$t t4e persons to travel an'
ot4er 'ata can %e &aintaine'6
All t4ese wor9 is 'one o$t &an$ally t4ese 'ays6 A 4$7e $antity o5
5iles is &aintaine' to save every c$sto&ers recor'6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
14/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
16 T4e reports are not pro'$ce' in ti&e an' t4e railway a$t4orities 4as little
$se o5 t4at in5or&ation6
/6 Lot o5 e55orts an' paper wor9 is involve'6
26 T4ere are c4an7es o5 inacc$racy i5 t4e reservation is cancelle'6
36 So&e in5or&ation is not sent in any 5ie' 5or&at@ so t4e 4i74er
&ana7e&ent 4ave to ta9e a lon7er ti&e to $n'erstan' it an' are $na%le to
ta9e ti&ely action6
:6 So&e ti&e in5or&ation is also &isplace' or p$t in 'i55erent places an'
w4en reports are 5or it %eco&es very 'i55ic$lt to 5in' t4ese reports6
;6 So&eti&es t4ere is '$plications o5 wor9 an' e55orts6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
15/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
Beca$se o5 4avin7 so &any li&itations in t4e eistin7 syste& t4ere
%eco&es a nee' o5 intro'$cin7 t4e co&p$terise' syste&6
8/12/2019 Railway Theory
16/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
BE*CTI+* F T)*PRE*CT
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
17/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
BE*CTI+* F T)* PRE*CT
M To provi'e an e55icient an' relia%le &aintenance syste&@ w4ic4 is
a'apta%le to c4an7e an' responsive to nee's 5or in5or&ation6
M To provi'e acc$rate an' relia%le in5or&ation %etween cler9 o55ice@
store an' war's in ti&e an' in a'apta%le 5or&6
M To s$pply in5or&ation to $ser in ti&e an' in t4e re$ire' 5or&ats6
M To re'$ce t4e papers wor9 in t4e &aintenance o5 t4e 'i55erent
'epart&ents o5 t4e resta$rant6
M To 'evelop Jprint t4e %ill o5 partic$lar c$sto&er6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
18/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
S,ST* 8*FINATIN
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
19/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
S,ST* 8*FINATIN
8/12/2019 Railway Theory
20/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
S,ST* 8*SIGN
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
21/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
S,ST* 8*SIGN
Syste& 'esi7n is t4e 5o$n'ation 5or all pro7ra& i&ple&entation6 It
is a 'etail concentration or sol$tion o5 4ow to approac4 to creation o5 new
syste&6 Syste& 'esi7n involves6
Syste& 'ei7n is a sol$tion@ a =4ow to> approac4 to t4e creation o5 a
new syste&6 T4is p4ase is co&pose' o5 several steps6 It provi'es t4e
$n'erstan'in7 an' proce'$ral 'etails necessary 5or i&ple&entin7 t4e syste&
6'esi7n 7oes t4ro$74 lo7ical an' p4ysical sta7es o5 t4e 'evelop&ent6
Lo7ical 'esi7n reviews t4e present p4ysical syste& prepares inp$t an'
o$tp$t speci5ications &a9es e'it@ sec$rity@ an' control speci5ications 'etails
t4e i&ple&entation plan an' prepares a lo7ical 'esi7n wal9t4ro$746
P4ysical 'esi7n &aps o$t t4e 'etails o5 t4e p4ysical syste&@ plans t4e
syste& i&ple&entation@ 'evices a test an' i&ple&entation plan@ an' speci5ies
any new 4ar'ware an' so5tware6
Syste& 'esi7n 5or t4e propose' syste& is co&pose' o5 several steps6
1# Inp$t
/# $tp$t
2# File 8esi7n
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
22/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
INPUT 8*SIGN
5ten t4e collection o5 inp$t 'ata is t4e &ost epensive part o5 t4e syste&@
in ter&s o5 %ot4 t4e e$ip&ent?s $se' an' t4e n$&%er o5 people involve'6 I5
'ata 7oin7 in to t4e syste& is incorrect@ t4en processin7 an' o$tp$t will
&a7ni5y its errors6 T4$s@ t4e 'esi7ner 4as a n$&%er o5 clear o%jectives in
inp$t 'esi7n6 A s$ccess5$l 'esi7nin7 o5 inp$ts is nee'e'@ so t4at it can 5$l5ill
all t4e 5$t$re re$ire&ents6 T4e 5ollowin7 are t4e 'esi7n o5 inp$t6
Train co'e (
*nter Na&e (
a''ress (
)o$se No6 (
Colony (
Post (
City (
Pin Co'e No6 (
*nter a7e !,ears6ont4s# (
*nter se 7ro$p ! J F# (
'ate '' (
&& (
yy (
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
23/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
5or inp$t t4ese varia%les t4e 5ollowin7 5$nctions are $se' (-
a''ressinp!#
T4is 5$nction is $se' to 7et t4e inp$t o5 t4e a''ress 5or t4e person in
t4is t4en na&e@ city@ state an' pin no6 o5 t4e person 6
p'etinp!#
T4is 5$nction is $se' to 7et t4e inp$t o5 t4e 'estination o5 t4e person
5ro& w4ic4 'estination to w4ic4 'estination t4e persons 4ave to 7o6 In it t4e
'estination are provi'e' an' t4e $ser 4ave to c4oose t4e co'e 5or t4e
partic$lar 'estination to %e visite'
voi' 'atinp!#
T4is 5$nction is $se' to enter t4e 'ate 5or t4e reservation t4e 'ate is
entere' in t4e 5or& o5 &&@ ''@ yy@6 & stan's 5or &ont4@ '' stan's 5or 'ate
an' t4e yy stan's 5or t4e year6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
24/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
UTPUT 8*SIGN
T4e 5$nctional processin7 o5 t4e syste& t4e process states or t4e
re$ire' in5or&ation is represente' in a well 5or&atte' way accor'in7 to
$sers re$ire&ents t4at %$ilt co&es o5 o$tp$t 'esi7n6
As we r$n o$r pro7ra& a screen will s4own on t4e &onitor6 It will as9 5or
press any 9ey to start t4e calc$lation6 As t4e $ser press enter 9ey@ t4e
calc$lator 5or&at is s4own6 T4e %$tton on t4e calc$lator will %e presse' $sin7
&o$se %$tton@ %eca$se o5 t4e GUI provi'e' %y &e6
T4is will s4ow t4e o$tp$t o5 t4e reserve' seat 5or t4e last passen7er
reserve'6
8/12/2019 Railway Theory
25/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
Train Co'e (
P*RSNAL 8*TAILS Na&e (
A'ress is( !,ears6ont4s# ( //
Se 7ro$p !JF# (
5ro& ( via(OO to (
8AT* ( 10 Q 10 Q /00Ha
OOOOOOOOOOO Press any 9ey to contin$e
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
26/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
FIL* 8*SIGN
8/12/2019 Railway Theory
27/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
)AR8
8/12/2019 Railway Theory
28/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
CA8JCA syste&@ a solitaire Ga&e an' t4e &any ot4er pro7ra&s t4at r$n on yo$r
co&p$ter6 ,o$ s4o$l' %e a%le to see t4e c4ip on yo$r Syste& %oar'6
Coprocessor
,o$r syste& also &i74t 4ave a &at4 coprocessor 4an'les &at4 %etter t4an t4e &ain
processor 'oes@ si7ni5icantly spee'in7 $p pro7ra&s t4at &$st 'o a lot o5 4eavy
calc$latin76
e&ory
,o$r &e&ory co&ponents store t4e pro7ra&s an' 'ata C$rrently in $se6 T4ese co&ponents
provi'e s4ort-ter&@ 4i74-spee' stora7e closely lin9e' to t4e &icroprocessor 5or 5ast retrieval6
Key%oar'
,o$r 9ey%oar' wor9s &$c4 li9e a typewriter@ wit4 so&e i&portant 'i55erences6 In a''ition to
t4e re7$lar typin7 area@ it 4as 5$nction 9eys@ a 9eypa'@ an' so&e special P$rpose 9eys6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
29/94
8/12/2019 Railway Theory
30/94
8/12/2019 Railway Theory
31/94
8/12/2019 Railway Theory
32/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
'o&inant operatin7 syste& 5or &icroco&p$ters6 It is nat$ral t4at C""? 4as
%e7an to in5l$ence t4e &icroco&p$ter co&&$nity at lar7e6
IPRTANC* F C""?
T4e increasin7 pop$larity o5 C""? is pro%a%ly '$e to its &any 'esira%le
$alities6 It is a ro%$st lan7$a7e w4ose ric4 set o5 %$ilt in 5$nctions an'
operators can %e $se' to write any co&ple pro7ra&6 T4e C""? co&piler
co&%ines t4e capa%ilities o5 an asse&%ly lan7$a7e wit4 t4e 5eat$res o5 a
4i74 level lan7$a7e an' t4ere5ore it is well s$ite' 5or writin7 %ot4
syste& so5tware an' %$siness pac9a7es6 In5ect &any o5 t4e C""?
co&pilers availa%le in t4e &ar9et are written in C""?6
Pro%le&s written in C""? are e55icient an' 5ast6 T4is is '$e to its variety
o5 'ata types an' power5$l operators6 It is &any ti&es 5aster t4an
BASIC6 For ea&ple@ a pro7ra& to incre&ent a varia%le 5ro& 0 to
1:000 ta9es a%o$t one secon' Js in C""? w4ile it ta9es &ore t4an :0
secon's in an interpreter BASIC6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
33/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
T4ere are only 2/ 9eywor's an' its stren7t4 lies in its in -%$ilt 5$nctions6
Several stan'ar' 5$nctions are availa%le w4ic4 can %e $se' 5or 'evelopin7
pro7ra&s6
C""? is 4i74ly porta%le6 T4is &eans t4at C""? pro7ra&s written 5or
one co&p$ter can %e r$n on anot4er wit4 little or no &o'i5ication6
Pro%a%ility is i&portant i5 we plan to $se a new co&p$ter wit4 a 'i55erent
operatin7 syste&6
C""? lan7$a7e is well s$ite' 5or str$ct$re' pro7ra&&in7@ t4$s re$irin7
t4e $ser to t4in9 o5 a pro%le& in ter&s o5 5$nction &o'$les or %loc9s6
A proper collection o5 t4ese &o'$les wo$l' &a9e a co&plete pro7ra&6
T4is &o'$lar str$ct$re &a9e pro7ra& 'e%$77in7@ testin7 an' &aintena-nce
easier6
Anot4er i&portant 5eat$re o5 C""? is its a%ility to etent itsel56 A C""?
pro7ra& is %asically a collection o5 5$nctions t4at are s$pporte' %y t4e
C""? li%rary6
8/12/2019 Railway Theory
34/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8/12/2019 Railway Theory
35/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
C"" PRGRAING STRUCTUR*
An i&portant aspect o5 C""? is t4at it 4as a &ini&al n$&%er o5 9eywor's@
2/ too precise6 T4ese 9eywor's co&%ine t4e 5or&al C""? synta 5ro&
t4e C""? pro7ra&&in7 lan7$a7e6 any C""? co&pilers 4ave@
4owever a''e' several 9eywor's to eploit t4e &e&ory or7aniation o5
certain preprocessors6
So&e r$les@ w4ic4 4ol' 5or all pro7ra&s written in C""?@ are as 5ollows(
All 9eywor's are lowercase'6
C is case sensitive@ 'o w4ile is 'i55erent to 8
8/12/2019 Railway Theory
36/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
S,ST* ANAL,SIS
Feasi%ility Analysis
An initial investi7ation c$l&inates in a proposal t4at 'eter&ines
w4et4er an alternative syste& is 5easi%le6 T4e 5easi%ility analysis 'escri%es
an' eval$ates Telep4one %ill an' Telep4one en$iry syste& an' provi'es 5or
t4e selection o5 t4e %est syste& t4at &eets syste& per5or&ance re$ire&ents6
To 'o a 5easi%ility st$'y@ we nee' to consi'er t4e econo&ic@ tec4nical@
an' %e4avioral 5actor in syste& 'evelop&ent6 First a project tea& is 5or&e'6
T4e tea& 'evelops syste& 5lowc4arts t4at i'enti5y t4e c4aracteristics o5
Telep4one %ill an' Telep4one en$iry syste&@ eval$ate t4e per5or&ance o5
eac4 syste&@ wei74 syste& per5or&ance an' cost 'ata@ an' select t4e %est
Telep4one %ill an' Telep4one en$iry syste& 5or t4e jo%6
T4ree 9ey consi'erations are involve' in t4e 5easi%ility analysis(
econo&ic@ tec4nical@ an' %e4avioral
*cono&ic Feasi%ility
*cono&ic analysis is t4e &ost 5re$ently $se' &et4o' 5or eval$atin7 t4e
e55ectiveness o5 a Telep4one %ill an' Telep4one en$iry syste&6 ore
co&&only 9nown as costJ%ene5it analysis@ t4e proce'$re is to 'eter&ine t4e
%ene5its an' savin7s t4at are epecte' 5ro& a Telep4one %ill an' Telep4one
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
37/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
en$iry syste& an' co&pare t4e& wit4 costs6 Telep4one %ill an' Telep4one
en$iry syste& %ene5its o$twei74 costs@ so t4e syste& is &a'e to 'esi7n an'
i&ple&ent t4e syste&6 So@ we 'on?t nee' 5$rt4er j$sti5ication or alterations
in t4e propose' syste&6
Tec4nical Feasi%ility
Tec4nical Feasi%ility centers aro$n' t4e eistin7 co&p$ter syste&
!4ar'ware@ so5tware@ etc6# an' to w4at etent it can s$pport t4e propose'
syste&6 In o$r case i5 Telep4one %ill an' Telep4one en$iry syste& is
r$nnin7 on a co&p$ter t4en it $ses 10 o5 t4e CPU capacity6 So we can r$n
&$ltiple instances o5 Telep4one %ill an' Telep4one en$iry syste& on a
sin7le co&p$ter6 T4is syste& 'oesn?t re$ire a''itional 4ar'ware6 I5 t4e
%$'7et is serio$s constraint@ t4en t4is project j$'7e' 5easi%le6
CostJBene5it analysis
In 'evelopin7 cost esti&ates 5or Telep4one %ill an' Telep4one en$iry
syste&@ we consi'er 5ollowin7 cost ele&ents(
)ar'ware costs relate to t4e act$al p$rc4ase or lease o5 t4e co&p$ter
an' perip4erals6 T4e 4ar'ware speci5ication re$ire' 5or t4is project is
very co&&on an' it costs c4eap an' easily a55or'a%le %y 8epart&ent o5
Teleco&&$nication6 8eter&inin7 t4e act$al cost o5 4ar'ware is 7enerally
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
38/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
&ore 'i55ic$lt w4en t4e syste& is s4are' %y vario$s $sers t4an 5or a
'e'icate' stan'-alone syste&6 In so&e cases@ t4e %est way to control 5or
t4is cost is to treat it as an operatin7 cost6
Personnel costs incl$'e salaries an' %ene5its as well as pay 5or t4ose
involve' in 'evelopin7 t4e syste&6 Costs inc$rre' '$rin7 t4e
'evelop&ent o5 a syste& are one-ti&e costs an' are la%ele'
'evelop&ental costs6 In t4is Telep4one %ill an' Telep4one en$iry
syste& only one person wor9e' 5or one &ont4@ so t4e personnel cost is
&ini&$& 5or 'evelop w4ole syste&6
Facility costs are epenses inc$rre' in t4e preparation o5 t4e p4ysical
site w4ere t4e application or t4e co&p$ter will %e in operation6 T4is is
treate' as one-ti&e costs an' is incorporate' into t4e overall cost esti&ate o5
t4e Telep4one %ill an' Telep4one en$iry syste&6
peratin7 costs incl$'e all costs associate' wit4 t4e 'ay-to-'ay
operation o5 t4e syste&6 T4e operation o5 t4is Telep4one %ill an'
Telep4one en$iry syste& is very easy to $n'erstan' an' easy to operate6
Beca$se@ operatin7 cost 'epen's $pon t4e co&p$ter ti&e@ sta55 ti&e an'
vol$&e o5 t4e o$tp$t pro'$ce'@ so we 'esi7n t4e syste& in s$c4 a way so
t4at t4e sta55 can easily operate t4e syste& an' e55iciency o5 t4e operation
will increase6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
39/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
Pro7ra&&in7 Lan7$a7e
Front *n'
T$r%oC"" is $se' as t4e pro7ra&&in7 lan7$a7e 5or t4e i&ple&entation o5
t4e project6
Bac9 *n'
8/12/2019 Railway Theory
40/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8ata Flow 8ia7ra&
Rail Reservation Railway
8ata 5or trainReservation Arrival 8epart$re Bac9$p@ Fair
Reser Train5ile
vation 8etail Save8etail Select *ntries User Pro5ile
Re$eTrain 8etails st
Pic9 Appl Pic9 s$%Na&e &en$
Applic Rea'
8esire' 8ata s$%&eP$t Appl
pen5ile
User@ S$%&en$@ application
S$% &en$ 5ile
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
41/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8ATA 8ICTINAR,
In 'ata 'ictionary t4ere are vario$s attri%$tesJvaria%les an'
5$nctionsJ&et4o's are $se'6 T4ese are 7iven %elow(-
Attri%$te
c4ar t9tno1:V
c4ar stco'e1:V
c4ar tna&e1:V
c4ar 5ro&1:V
c4ar to1:V
c4ar ''ate1:V
c4ar rclass1:V
int rate
Wt
c4ar tco'e1:V
c4ar tna&e1:V
c4ar 5ro&1:V
c4ar to1:V
c4ar '1'ate1:V
c4ar '/'ate1:V
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
42/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
c4ar '2'ate1:V
c4ar '3'ate1:V
c4ar st11:V
c4ar st/1:V
c4ar st21:V
c4ar st31:V
c4ar st:1:V
int
5ctot@5c%9@5cav@sctot@sc%9@scav@actot@ac%9@acav
Ws
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
43/94
8/12/2019 Railway Theory
44/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
C8INGQ incl$'e Xiostrea&64
Q incl$'e X5strea&64
Q incl$'e Xstrin764
Q incl$'e Xst'li%64
Q incl$'e Xst'io64
Q incl$'e Xctype64
Q incl$'e X'os64
Q incl$'e Xconio64
Q incl$'e Xprocess64
Q incl$'e X7rap4ics64
voi' $serscreen!#class TICK*T
Y
private(
voi' A88R*CR8!c4ar10V@c4ar1:V@c4ar1:V@int@int#
p$%lic(
voi' A88ITIN!voi'#
voi' *N.UIR,!voi'#
voi' BK*N.UIR,!voi'#
c4ar TrainN!int#
protecte'(
c4ar 5ltno10V@5ro&1:V@to1:V int eco5air@ee5air
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
45/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJT)IS CLASS CNTRLS ALL T)* FUNCTINS R*LAT*8 T PASS*NG*RS
class PASS*NG*RY
p$%lic(
voi' A88R*CR8!int@int@c4ar/;V@c4ar2;V@int@c4ar@c4ar#
voi' 8*L*T*TICK*T!int#
int 8*L*T*Train!int#
voi' LIST!voi'#
int LASTTICK*TN!voi'#
int S*ATS!int#
int FUN8!int#
c4ar NA*!int#
voi' PASSINF!#
voi' 8IF,!#
protecte'(
c4ar Class@ na&e/;V@a''ress2;V@se
int slno@a7e@tic9etno
W
JJT)IS IS T)* 8*RI+*8 CLASS
8/12/2019 Railway Theory
46/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
class R*S*R+* ( p$%lic TICK*T@p$%lic PASS*NG*R
Y
p$%lic(
voi' R*S*R+ATIN!voi'#
voi' BKR*S*R+ATIN!voi'#
voi' CANC*LLATIN!voi'#
voi' 8ISPLA,TICK*T!voi'#
voi' 8*L*T*ALL!voi'#
W
JJFUNCTIN T A88 GI+*N 8ATA IN T)* TICK*T FIL*!TICK*T68AT#
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
47/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
voi' TICK*T (( A88R*CR8!c4ar t5ltno10V@c4ar t5ro&1:V@c4ar tto1:V@int teco5air@int tee5air#
Y
5strea& 5ile
5ile6open!ZTICK*T68ATZ@ios((app#
strcpy!5ltno@t5ltno#
strcpy!5ro&@t5ro
strcpy!to@tto#
eco5air [ teco5air
ee5air [ tee5air
5ile6write!!c4ar#t4is@sieo5!TICK*T##
5ile6close!#
W
JJFUNCTIN T R*TURN Train N6 FR T)* GI+*N S6N
c4ar TICK*T (( TrainN!int sno#
Y
5strea& 5ile
5ile6open!ZTICK*T68ATZ@ios((in#
int co$nt [ 1
w4ile!5ile6rea'!!c4ar# t4is@sieo5!TICK*T###
Y
i5 !sno [[ co$nt#%rea9
co$nt""
W5ile6close!#
ret$rn 5ltnWLN ,NR BSC IT FINAL
8/12/2019 Railway Theory
48/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJFUNCTIN T GI+* 8ATA T A88 R*CR8S IN T)* TICK*T FIL*
voi' TICK*T (( A88ITIN!voi'#
Y 5strea& 5ile
5ile6open!ZTICK*T68ATZ@ios((in#
i5 !\5ile65ail!# #
ret$rn
5ile6close!#
A88R*CR8!ZKL1;Z@Z8*L)IZ@ZUBAIZ@1:00@100#
A88R*CR8!ZKL1Z@ZUBAIZ@Z8*L)IZ@1:00@100#
A88R*CR8!ZKL1:;Z@Z8*L)IZ@ZCALCUTTAZ@100@100#
A88R*CR8!ZKL1:Z@ZCALCUTTAZ@Z8*L)IZ@100@100#
A88R*CR8!ZKL1;;Z@Z8*L)IZ@ZA8RASZ@/100@/200#
A88R*CR8!ZKL1;Z@ZA8RASZ@Z8*L)IZ@/100@/200#
A88R*CR8!ZKL1;Z@ZUBAIZ@ZCALCUTTAZ@100@/100#
A88R*CR8!ZKL1Z@ZCALCUTTAZ@ZUBAIZ@100@/100#
A88R*CR8!ZKL1H;Z@ZUBAIZ@ZA8RASZ@1H00@/000#
A88R*CR8!ZKL1HZ@ZA8RASZ@ZUBAIZ@1H00@/000#
A88R*CR8!ZKL1;Z@ZCALCUTTAZ@ZA8RASZ@1;00@1H00#
A88R*CR8!ZKL1Z@ZA8RASZ@ZCALCUTTAZ@1;00@1H00#
W
JJFUNCTIN T 8ISPLA, LIST F Trains
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
49/94
8/12/2019 Railway Theory
50/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
voi' TICK*T (( BK*N.UIR,!voi'# Y clrscr!#
5strea& 5ile
5ile6open!ZTICK*T68ATZ@ios((in#7otoy!20@2#co$tXXZLIST F T)* TrainsZ
7otoy!1H@:#
co$tXXZSno6 Train N6 FR T *C6FAIR *D*6FAIRZ
int row [ @sno [ 1
w4ile!5ile6 Rea'!!c4ar#t4is@ sie o5!TICK*T###
Y
7otoy!1H@row#
co$tXXsno
7otoy!/2@row#
co$tXX5ltno
7otoy!23@row#
co$tXX5ro&
7otoy!33@row#
co$tXXto
7otoy!:2@row#
co$tXXeco5air / 7otoy!;2@row# co$tXXee5air / row"" sno""
W 5ile6 Close!# W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
51/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJFUNCTIN T R*S*R+* TICK*T FR T)* PASS*NG*RS
voi' R*S*R+* (( R*S*R+ATIN!voi'#
Yclrscr!#
*N.UIR,!#c4ar t11:V@pclass@pna&e/;V@pa''ress2;V@pse@p5ltno10V
int t/@vali'@pa7e@tno@sno
PASS*NG*R p
tno [ p6LASTTICK*TN!# " 1
'o Yvali' [ 1
7otoy!2@/2#
clreol!#
co$tXXZPR*SS X*NT*R T *DITZ7otoy!2@/0#clreol!#
co$tXXZ*NT*R T)* SN6 F T)* Train ( Z
7ets!t1#
t/ [ atoi!t1#
sno [ t/i5!strlen!t1# [[ 0#
ret$rn
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
52/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
i5!sno X 1 ]] sno 1/# Y vali' [ 0
7otoy!2@/2#
clreol!#
co$tXXZ*NT*R CRR*CTL,Z7etc4!# W
W w4ile!\vali'#
int i[1
5strea& 5ile 5ile6open!ZTICK*T68ATZ@ios((in#
w4ile!5ile6rea'!!c4ar#t4is@ sieo5!TICK*T### Y i5!sno [[ i# %rea9 i""
W
5ile6close!#
strcpy!p5ltno@5ltno#
i5!p6S*ATS!sno#[/:0#
Y7otoy!:@/1#
co$tXXZ^Sorry\ S*ATS AR* NT A+AILABL*Z
7etc4!#
ret$rn W 7otoy!2@/2# clreol!#
co$tXXZ*[*CNIC@D[*D*CUTI+* or PR*SS X*NT*R T *DITZ 'o
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
53/94
Railway reservation BSC - IT FINAL ANKIT GUPTAY 7otoy!2@/1#clreol!#
co$tXXZB,
8/12/2019 Railway Theory
54/94
8/12/2019 Railway Theory
55/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
'o Yvali' [ 1
7otoy!:@/:#clreol!#
co$tXXZ*NT*R T)* A88R*SS F T)* PASS*NG*RZ
7otoy!1:@;#
clreol!#
7ets!pa''ress#
i5!pa''ress0V [[ _0_#
ret$rn
i5!strlen!pa''ress# X 1 ]] strlen!pa''ress# 2:#
Y
vali' [ 0
7otoy!:@/:#
clreol!#
co$tXXZ *NT*R CRR*CTL, YRANG* ( 1 T 2:WZ
7etc4!#W
W
w4ile!\vali'#
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
56/94
8/12/2019 Railway Theory
57/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
clrscr!#
7otoy!11@3#co$tXXZZ
7otoy!11@/1#
co$tXXZZ7otoy!22@;#co$tXXZTICK*T N6 ( ZXXtno7otoy!1@#
co$tXX5ro&XXZ T ZXXto
7otoy!3:@#
co$tXXZTrain N6 ( ZXXp5ltno
7otoy!/0@11#
co$tXXZPASS*NG*R NA* ( ZXXpna&e
7otoy!/0@12#
co$tXXZA88R*SS ( ZXXpa''ress
7otoy!/0@1:#
co$tXXZS*D ( ZXXpse
7otoy!/0@1#
co$tXXZAG* ( ZXXpa7e
7otoy!3:@1# i5!pclass [[ _*_#co$tXXZTTAL FAIR ( ZXXeco5air
elseco$tXXZTTAL FAIR ( ZXXee5air
p6A88R*CR8!tno@sno@pna&e@pa''ress@pa7e@pse@pclass# 7etc4!# W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
58/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJ FUNCTIN T A88 T)* GI+*N 8ATA IN T)* PASS*NG*R_S FIL*
voi' PASS*NG*R (( A88R*CR8 !int tno@int sno@c4ar pna&e/;V@c4ar pa''ress2;V@int
pa7e@c4ar pse@c4ar pclass#Y
5strea& 5ile
5ile6open!ZPASS68ATZ@ios((app#
tic9etno [ tno
slno [ sno
strcpy!na&e@pna&e#
strcpy!a''ress@pa''ress#
a7e [ pa7e
se [ pse
Class [ pclass
5ile6write!!c4ar#t4is@sieo5!PASS*NG*R##5ile6close!#
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
59/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
voi' PASS*NG*R (( 8IF,!#
Yint tcno
c4ar t11:V@pclass@pna&e/;V@pa''ress2;V@pse@p5ltno10V
int t/@vali'@pa7e@tno@sno
PASSINF!#
co$tXXZ^n*NT*R T)* TICK*T NUB*R F T)* PASS*NG*RZ
cintcno
5strea& 5ile
5ile6open!ZPASS68ATZ@ios((in]ios((o$t#
int &[0
int l
5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
60/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
w4ile!\5ile6eo5!##
Y &""
i5!tcno[[tic9etno#
Y
l[!&-1#sieo5!PASS*NG*R#
co$tXXl
7etc4!#
clrscr!#
7otoy!/@2#
co$tXXZX0-*DITZ
7otoy!23@/#
co$tXXZR*S*R+ATINZ
7otoy!:@:#
co$tXXZNA* ( Z7otoy!:@;#
co$tXXZA88R*SS ( Z
7otoy!:@#
co$tXXZS*D JF ( Z
7otoy!:@H#
co$tXXZAG* ( Z
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
61/94
8/12/2019 Railway Theory
62/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
7otoy!1:@H#clreol!#
7ets!t1#
t/ [ atoi!t1#
pa7e [ t/co$tXXZCLASS(*!*CNIC# R D!*D*CUTI+*#Z
pclass[7etc4e!#
i5!strlen!pa''ress#\[0#
strcpy!a''ress@pa''ress#
i5!strlen!pna&e#\[0#
strcpy!na&e@pna&e#
i5!strlen!t1#\[0#
a7e[pa7e
i5!pse\[12#
se[pse
i5!pclass\[12#
Class[pclass
5ile6see9p!l#
5ile6write!!c4ar#t4is@sieo5!PASS*NG*R##
5ile6close!#
ret$rnW else
5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
W W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
63/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
voi' PASS*NG*R (( PASSINF!#
Y
5strea& 5ile
5ile6open!ZPASS68ATZ@ios((in#
co$tXXZ PASS*NG*RS INFRATIN^nZ
co$tXXZ ^nZ7otoy!/@3#
co$tXXZT6N6Z
7otoy!11@3#
co$tXXZS6N6Z
7otoy!/:@3#co$tXXZNA*Z
7otoy!3H@3#co$tXXZA88R*SSZ
7otoy!;;@3#co$tXXZAG*Z
7otoy!0@3#co$tXXZS*DZ7otoy!3@3#co$tXXZCLASSZ 7otoy!1@:#co$tXXZZint tno@sno@pa7e
c4ar pna&e/;V@pa''ress2;V@pse@pclass@p5ltno10V int i[;LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
64/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
w4ile!5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R###Y
tno[tic9etno
sno[slno
strcpy!pna&e@na&e#
strcpy!pa''ress@a''ress#pa7e [ a7e
pse [ se
pclass [ Class
7otoy!/@i#
co$tXXtno
7otoy!11@i#
co$tXXsno
7otoy!/0@i#
co$tXXpna&e
7otoy!3:@i#
co$tXXpa''ress7otoy!;@i#
co$tXXpa7e7otoy!1@i# co$tXXpse 7otoy!@i# co$tXXpclass
i"" W 5ile6close!# W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
65/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJT)IS FUNCTIN R*TURNS T)* LAST TICK*T N6 IN T)* PASS*NG*R FIL*
int PASS*NG*R ((LASTTICK*TN!voi'#Y5strea& 5ile
5ile6open!ZPASS68ATZ@ios((in#
int co$nt [ 0
w4ile!5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R###
co$nt [ tic9etno
5ile6close!#
ret$rn co$nt W
JJT)IS FUNCTIN R*TURNS TTAL N6 F S*ATS IN T)* PASS*NG*R FIL*
int PASS*NG*R (( S*ATS!int sno#Y
5strea& 5ile
5ile6open!ZPASS68ATZ@ios((in#
int co$nt [ 0
w4ile!5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R###
Y
i5!sno [[ slno#
co$nt""
W
5ile6close!#
ret$rn co$nt W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
66/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJT)IS FUNCTIN R*TURNS 0 IF T)* TICK*T N6 IS NT FUN8 IN T)*
JJPASS*NG*R FIL* int PASS*NG*R (( FUN8!int tno#Y5strea& 5ile5ile6open!ZPASS68ATZ@ios((in#int 5o$n' [ 0
w4ile!5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R###Yi5!tno [[ tic9etno#
Y 5o$n' [ 1%rea9
W
W
5ile6close!#
ret$rn 5o$n' W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
67/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
clreol!#co$tXXZPR*SS X*NT*R T *DITZ
7otoy!2@/0#
clreol!#
co$tXXZ*NT*R SN6F T)* Train
8/12/2019 Railway Theory
68/94
Railway reservation BSC - IT FINAL ANKIT GUPTAY
i5!sno [[ slno#
Y 5la7 [ 0
'elay!/0#
5o$n' [ 1
7otoy!:@row#
co$tXXtic9etno
7otoy!1@row#
co$tXXna&e
7otoy!3@row#
i5!Class [[ _D_#
co$tXXZ*D*CUTI+*Z
else
co$tXXZ*CNICZ
i5!row [[ /1# Y5la7 [ 1
row [
7otoy!:@/2#
co$tXXZPR*SS AN, K*, T CNTINU* R PR*SS X*SCZ
c4 [ 7etc4!#i5!c4 [[ /# %rea9clrscr!#7otoy!2/@2#co$tXXZLIST F PASS*NG*RSZ7otoy!/@:#co$tXXZTICK*T N6 NA* CLASS Z
W else
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
69/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
row""
W
W
i5!\5o$n'# Y
7otoy!:@10#
co$tXXZ^R*CR8S NT FUN8Z
W
i5!\5la7#
Y
7otoy!:@/2#
co$tXXZPR*SS AN, K*, T CNTINU*6666Z
7etc4!#
W5ile6close!#
W
v
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
70/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
i5!5ile6eo5!# #
%rea9
i5!tno \[ tic9etno#te&p6write!!c4ar#t4is@sieo5!PASS*NG*R##
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
71/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
Y
te&p6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
i5!te&p6eo5!# #
%rea9
5ile6write!!c4ar#t4is@sieo5!PASS*NG*R##
W
5ile6close!#
te&p6close!#
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
72/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJT)IS FUNCTIN 8*L*T*S PASS*NG*R R*CR8S FR T)* GI+*N Train N6
int PASS*NG*R (( 8*L*T*Train!int sno# Y
5strea& 5ile
5ile6open!ZPASS68ATZ@ios((in#
5strea& te&p
te&p6open!Zte&p6'atZ@ios((o$t#
5ile6see97!0@ios((%e7#
int 5o$n' [ 0 w4ile!\5ile6eo5!# #
Y
5ile6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
i5!5ile6eo5!# #
%rea9
i5!sno \[slno#te&p6write!!c4ar#t4is@sieo5!PASS*NG*R##
else5o$n' [ 1
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
73/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
5ile6close!#
te&p6close!#
5ile6open!ZPASS68ATZ@ios((o$t#
te&p6open!Zte&p6'atZ@ios((in#
te&p6see97!0@ios((%e7#
w4ile!\te&p6eo5!# #
Y
te&p6rea'!!c4ar#t4is@sieo5!PASS*NG*R##
i5!te&p6eo5!# #
%rea9
5ile6write!!c4ar#t4is@sieo5!PASS*NG*R##
W5ile6close!#
te&p6close!#
ret$rn 5o$n'
W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
74/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
JJT)IS FUNCTIN CANC*LS PASS*NG*R_S TICK*T
voi' R*S*R+* ((CANC*LLATIN!voi'#Y
clrscr!#c4ar t110V@c4int t/@tno@vali''o
Y
vali' [ 1
7otoy!2@/2#
clreol!#
co$tXXZPR*SS X*NT*R T S** LIST R 0 T *DIT Z
7otoy!2@/0#
clreol!#
co$tXXZ*NT*R TICK*TN6 F PASS*NG*R T CANC*L T)* TICK*TZ
7ets!t1#
t/ [ atoi!t1#
tno [ t/
i5!t10V [[ _0_#
ret$rn
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
75/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
i5!strlen!t1# [[ 0#
Yvali' [ 0
LIST!#
clrscr!#
W
i5!\FUN8!tno# vali'#
Y
vali' [ 0
7otoy!2@/2#
clreol!#
co$tXXZ^R*CR8 NT FUN8Z
7etc4!#W
W w4ile!\vali'#
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
76/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
W
setcolor!13#
settetstyle!/@0@:#
o$ttety!130@110@ZZ#
o$ttety!130@13@Z Z#
7otoy!20@1/#
7ets!$na&e#
i5 !strc&p!$na&e@ZZ#[[0#
o$ttety!/30@13@ZZ#
else
Y o$ttety!/30@13@ZPasswor'JNa&e Not KZ#
eit!0#
W
7etc4!#
close7rap4!#W
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
77/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
UTPUTS
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
78/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
79/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8/12/2019 Railway Theory
80/94
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
81/94
8/12/2019 Railway Theory
82/94
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
83/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8/12/2019 Railway Theory
84/94
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
85/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
CNCLUSIN
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
86/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
CNCLUSIN
I 'evelope' t4is project in s$c4 a way t4at it will %e $ser 5rien'ly
so5tware to 4an'le t4e calc$lations6 T4is project $se' t4e n$&%er option to
operate t4e ot4er co&&an's6
I 4ope $ser will 5in' no 'i55ic$lty w4ile operatin7 t4is so5tware@ as
t4ere will %e no co&plications $ser j$st 4as to press t4e appropriate n$&%er to
per5or& t4e operation6
)ope $ser will learn 5ro& t4is project as &$c4 I 4ave6 T4is project is a
learnin7 eperience 5or &e6 By wor9in7 on t4is project I will a%le to
'evelop &any s9ills an' 9nowle'7e a%o$t playin7 wit4 7rap4ics 5$nctions
an' &any ot4er 5$nctions $se' in C""6
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
87/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
A8+ANTAG*SF
PRE*CT
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
88/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
A8+ANTAG*S F PRE*CT
By co&pt$erisation o5 t4ese syste& t4ere will %e t4e 5ollowin7 a'vanta7es
o5 t4e propose' syste&6
16 It is easy to reserve t4e tic9et 5or any jo$rney6
/6
8/12/2019 Railway Theory
89/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8ISA8+ANTAG*SF
PRE*CT
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
90/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
8ISA8+ANTAG*S F PRE*CT
B$t =not4in7 is per5ect in t4is worl'>6 T4is project also 4ave certain
ass$&ptions an' li&itations@ w4ic4 are as 5ollows6
16 8$e to s4orta7e o5 ti&e@ i 4ave s9ippe' t4e ot4er i&portant ite&s or
varai%le $se' at t4e ti&e o5 act$al reservation o5 Railway tic9et6
/6 T4is project also s$55ers 5ro& t4e li&itation o5 less 'oc$&entation6 ore
c4ec9s can %e incl$'e' on eac4 wron7 inp$t@ %$t '$e to s4orta7e o5 ti&e i
can?t 7ive attention to eac4 aspect6
26 ,o$ 7et t4e wron7 res$lts i5 yo$ 5ee' t4e wron7 inp$t6t4e syste& s4ows
&essa7e 5or t4e invali' inp$t6
36
8/12/2019 Railway Theory
91/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
FURT)*R SCP*F
PRE*CT
LN ,NR BSC IT FINAL
8/12/2019 Railway Theory
92/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
FURT)*R SCP* F PRE*CT
,o$ can save 5or a lon7 ti&e as &any recor's as yo$ can an' t4ere is no
c4ance o5 losin76 A5ter alon7 ti&e i5 yo$ want to see t4en t4ere are no
pro%le&s to co&p$ter syste&6 ,o$ can see t4e recor's at any ti&e accor'in7
to 4is re$ire&ent6
M Syste& 'on?t 7et %ore'@ t4ere5ore yo$ can see t4e recor' as &any
ti&es as yo$ can6 Up'atin7 can %e easily 'one a5ter a lon7 perio'
o5 ti&e6
8/12/2019 Railway Theory
93/94
8/12/2019 Railway Theory
94/94
Railway reservation BSC - IT FINAL ANKIT GUPTA
R*F*R*NC*S
Boo9s
S6No6 AUT)R NA* F BK R*F6PAG*6N
1 Plasto9 Gor'en @ Roy A6 Co&p$ter Grap4ics 3:-3
/ La5ore @Ro%ert C"" Co&plete Re5erence 2:-3
2 Kanet9ar @ ,as4want Let Us C"" 3;-::
3 Kanet9ar @,as4want Grap4ics Un'er C 2/-2:
: Sc4il't @)er%ert T4e Co&plete re5erence C"" 30-3:
; )$%%ar' @ Eo4n R6 S4a$& $tline 5 /2-/H
Pro7ra&&in
7
C""
*6 Bala7$r$swa&y %ject oriente' Pro7ra&&in7 in 2H-30
C""