Suraj
Suraj
AIRLI
    NESRESERVATI
               ONSYSTEM”
“
AIRLI
    NESRESERVATI
               ONSYSTEM”
    A
  Pr
   oject
  Report
   On
“AI
  R LI
     NES RESERVATI
                 ON
SYSTEM”
            “
            AIRLI
                NESRESERVATI
                           ONSYSTEM”
                    CERTI
                        FICATE
  Thi
    sist
       ocer
          ti
           fyt
             hatt
                hepr
                   ojectwor
                          kent
                             it
                              led“
                                 AirLi
                                     nesReser
                                            vat
                                              ionSyst
                                                    em”
                                                      ,
whi
  ch i
     s bei
         ng submi
                tt
                 ed by BHARTISAXENA i
                                    n par
                                        ti
                                         alf
                                           ulf
                                             il
                                              l
                                              mentoft
                                                    he
r
equi
   rement
        sforawar
               doft
                  hedegr
                       eeofBCA i
                               nMANORAMA I
                                         NSTI
                                            TUTEOF
MANAGEMENT&TECHNOLOGY i
                      sanaut
                           hent
                              icwor
                                  kcar
                                     ri
                                      edoutbyt
                                             hes
                                               tudent
i
nundermysuper
            visorandgui
                      dance.
  Iwi
    sht
      hest
         udentt
              hebestf
                    orhi
                       sacademi
                              cvent
                                  ures
                                     .
                                     Si
                                      gnat
                                         ureofSt
                                               udent
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
          ACKNOWLEDGEMENT
    I
    nthi
       smoder
            nwor
               ldofcompet
                        it
                         iont
                            her
                              eisar
                                  aceofexi
                                         stencei
                                               n
whi
  cht
    hosear
         eef
           fi
            cientt
                 ocomef
                      orwar
                          dtosucceed.Pr
                                      ojecti
                                           sli
                                             kea
br
 idgebet
       weent
           heor
              eti
                calandpr
                       act
                         ical.
                             so,Ihavej
                                     oinedt
                                          hispar
                                               ti
                                                cul
                                                  ar
pr
 oject
     .
    Today af
           ter compl
                   eti
                     ng my pr
                            oject If
                                   eelgr
                                       eat r
                                           eli
                                             ef and
sat
  isf
    act
      ion,now whenIl
                   ookback,Ist
                             il
                              lremembert
                                       hedaywhenIwas
assi
   gned t
        his pr
             oject“
                  AIRLI
                      NES RESERVATI
                                  ON "
                                     .Iwas somewhat
puzzl
    edandabi
           tner
              vousandcur
                       iouswher
                              etobegi
                                    nfr
                                      om.Thi
                                           swasa
new expos
        uref
           orme.Att
                  hisj
                     unct
                        ure oft
                              ime when mypr
                                          ojecti
                                               s
compl
    eted,Iwoul
             dli
               ket
                 othatwhopr
                          ovi
                            dedmepowert
                                      ocompl
                                           etet
                                              his
wor
  k and t
        o my par
               ent
                 swho al
                       waysi
                           nspi
                              red and encour
                                           aged me
t
hroughoutmyl
           i
           fe.Onceagai
                     n,Iwoul
                           dli
                             ket
                               oconveymysi
                                         ncer
                                            eand
speci
    alt
      hankst
           oMr
             .DeepakShar
                       maf
                         acul
                            tyofComput
                                     erSci
                                         ence,f
                                              or
hi
 ski
   ndcooper
          ati
            onandknowl
                     edgeassi
                            stancei
                                  ngi
                                    vi
                                     ngshapet
                                            othi
                                               s
pr
 ojectandgr
          eatr
             egar
                dsf
                  oral
                     ltheCol
                           l
                           agest
                               affmember
                                       swhogave
met
  hepr
     act
       icalknowl
               edgeofal
                      l
                      .Ibel
                          i
                          evet
                             hatwi
                                 thoutt
                                      hei
                                        rgui
                                           dance
t
hesuccessf
         ulcompl
               eti
                 onoft
                     hispr
                         ojectwasnotpossi
                                        ble.
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
                   I
                   NTRODUCTI
                           ON
Pr
 ojectnamei
          s“Ai
             rLi
               nesReser
                      vat
                        ionSyst
                              em”
                                .
    Thepr
        ojecti
             sver
                yfl
                  exi
                    bleandi
                          tcanbemodi
                                   fi
                                    edi
                                      ftheneedar
                                               ises.
Ihopet
     heuserwi
            l
            lfi
              ndt
                hispr
                    ojectwor
                           kqui
                              tepl
                                 easi
                                    ngi
                                      nit
                                        sout
                                           putas
gener
    alsampl
          e desi
               gni
                 ng hasbeen done t
                                 o enhance t
                                           he vi
                                               ew and
si
 mpl
   epr
     ogr
       ammi
          ngst
             atementandcommandshavebeenmadeuseof
                                               ,
so t
   hatt
      he userhad no pr
                     obl
                       em i
                          n under
                                standi
                                     ng t
                                        he l
                                           i
                                           sti
                                             ng oft
                                                  he
pr
 oject
     .Fi
       l
       eshavebeenusedt
                     ocr
                       eat
                         easyst
                              emat
                                 icmedi
                                      um ofdat
                                             a
st
 orageandr
         etr
           ieval
               .
    Iam sur
          ethatr
               eaderwi
                     l
                     lli
                       ket
                         hisef
                             for
                               tandso,Iwi
                                        shedhi
                                             m/herby
hear
   tst
     oaheadandt
              urnt
                 hispage.
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
                    OBJECTI
                          VES
Ai
 rwayshasanumberofr
                  eser
                     vat
                       ionof
                           fi
                            cesi
                               neachci
                                     tywher
                                          ethef
                                              li
                                               ght
                                                 s
oper
   ate.Eachr
           eser
              vat
                ionof
                    fi
                     cehasanumberofr
                                   eser
                                      vat
                                        ioncount
                                               erst
                                                  o
handl
    eres
       ervat
           ionsandcancel
                       l
                       ati
                         ons.Eachcount
                                     erhasacount
                                               erassi
                                                    stant
who i
    sresponsi
            blef
               ormaki
                    ng r
                       eser
                          vat
                            ions orcancel
                                        l
                                        ati
                                          ons
                                            .The mai
                                                   n
obj
  ect
    iveoft
         hispr
             ojectt
                  oper
                     for
                       med r
                           eser
                              vat
                                ion,cancel
                                         l
                                         ati
                                           onandr
                                                epor
                                                   t.
I
nconcer
      nedt
         oreser
              vat
                ions,t
                     hef
                       oll
                         owi
                           ngact
                               ivi
                                 ti
                                  esar
                                     edone.
   Accept
         sthe dat
                e,sect
                     or,and cl
                             assoft
                                  ravelf
                                       rom t
                                           he per
                                                son and
    checksf
          ort
            heavai
                 l
                 abi
                   l
                   it
                    yofaseati
                            ntheReser
                                    vat
                                      ionf
                                         il
                                          e.
   Conf
       ir
        mst
          hedet
              ail
                swi
                  tht
                    hepr
                       ospect
                            ivepassengerandaccept
                                                sthe
    r
    emai
       ningdet
             ail
               s.
   Updat
        etheseatavai
                   l
                   abi
                     l
                     it
                      yst
                        atusi
                            nther
                                eser
                                   vat
                                     ionf
                                        il
                                         eandaddst
                                                 he
    passengerdet
               ail
                 st he f
                   ot  il
                        e.The passengeri
                                       s assi
                                            gned a uni
                                                     que
    PassengerNameRequest(
                        PNR)number
                                 ,
   Col
      l
      ect
        sthef
            areamount
                    .
   Updat
        ethe Dai
               l
               yCol
                  l
                  ect
                    ion f
                        il
                         ewi
                           tht
                             hef
                               are
amount
     .Inconcer
             nedt
                ocancel
                      l
                      ati
                        on,t
                           hef
                             oll
                               owi
                                 ng
act
  ivi
    ti
     esi
       sdone
    Ret
      ri
       evest
           hedet
               ail
                 sfr
                   om t
                      hef
                        il
                         eusi
                            ngt
                              hePNRnumber
                                        .
    Ver
      if
       iest
          hedet
              ail
                soft
                   het
                     icketandcomput
                                  est
                                    her
                                      efundamount
                                                .
    Updat
        est
          heseatavai
                   l
                   abi
                     l
                     it
                      yst
                        atusi
                            nther
                                eser
                                   vat
                                     ionsf
                                         il
                                          eandmar
                                                kst
                                                  he
    cor
      respondi
             ngdet
                 ail
                   soft
                      hef
                        il
                         e.
    Makest
         her
           efundandpr
                    int
                      sther
                          efundr
                               ecei
                                  pt.
     Fi
      l
      est
        her
          ecei
             ptal
                ongwi
                    tht
                      hesi
                         gnat
                            ureoft
                                 he
  passenger. Updat heDai
                 est   l
                       yCol
                          l
                          ect
                            ionf
                               il
                                e.
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
AndRepor
       tsar
          egener
               atedas:
                     -
 Pr
   intt
      heconf
           ir
            medandwai
                    t-l
                      i
                      stedpassengerl
                                   i
                                   stoff
                                       li
                                        ght
                                          sdepar
                                               ti
                                                ng.
 Pr
   intt
      hedai
          l
          ycol
             l
             ect
               ionsummar
                       yrepor
                            t.
I
 tal
   sogener
         atevi
             ew r
                atesf
                    ordi
                       ff
                        erentsect
                                or& vi
                                     ew f
                                        li
                                         ghtschedul
                                                  es
  f
  oraspeci
         fi
          cper
             iod
 Showst
       atusoft
             icketwi
                   thgi
                      venPNRnumber
                                 .
 Repor
      tonavai
            l
            abi
              l
              it
               yoff
                  li
                   ght&seat
                          sondesi
                                reddat
                                     e.
                              “
                              AIRLI
                                  NESRESERVATI
                                             ONSYSTEM”
          SYSTEM ANALYSI
                       S
SYSTEM ANALYSI
              S
   I
    ntr
      oduct
          ionofUser
   Def
      ini
        ti
         onofSyst
                em
   I
    dent
       if
        icat
           ionofNeed
   Pr
     eli
       minar
           yInvest
                 igat
                    ion
   Modul
        esi
          nAI
            R-LI
               NESRESERVATI
                          ONSYSTEM
                          “
                          AIRLI
                              NESRESERVATI
                                         ONSYSTEM”
            SYSTEM ANALYSI
                         S
     Anal
        ysi
          sisadet
                ail
                  edst
                     udyoft
                          hevar
                              iousoper
                                     ati
                                       onsper
                                            for
                                              medbya
syst
   em andt
         hei
           rrel
              ati
                onwi
                   thi
                     nandout
                           sidet
                               hesyst
                                    em.Akeyquest
                                               ioni
                                                  swhat
mustbedonet
          osol
             vet
               hepr
                  obl
                    em.Oneaspectoft
                                  heanal
                                       ysi
                                         sdef
                                            ini
                                              ngt
                                                he
boundar
      iesoft
           hesyst
                em anddet
                        ermi
                           ningwhet
                                  herornotacandi
                                               dat
                                                 esyst
                                                     em
shoul
    dconsi
         derot
             herr
                elat
                   edsyst
                        em.
Dur
  inganal
        ysi
          sdat
             aar
               ecol
                  l
                  ect
                    edont
                        heavai
                             l
                             abl
                               efi
                                 l
                                 esdeci
                                      si
                                       onpoi
                                           ntsand
t
ransact
      ionhandl
             edbyt
                 hepar
                     entsyst
                           em.Somel
                                  ogi
                                    calsyst
                                          em model
                                                 sand
t
ool
  s ar
     e used i
            nthe anal
                    ysi
                      s.Dat
                          afl
                            ow di
                                agr
                                  ams,i
                                      nter
                                         views,onsi
                                                  te
obser
    vat
      ionandquest
                ionnai
                     resar
                         eexampl
                               es,t
                                  hei
                                    nter
                                       viewi
                                           scommonl
                                                  yused
i
nanal
    ysi
      s.I
        trequi
             resspeci
                    alski
                        l
                        landsensi
                                ti
                                 vi
                                  tyt
                                    othesubj
                                           ectbei
                                                ngi
                                                  nter
                                                     view
bi
 asi
   ndat
      acol
         l
         ect
           ionandi
                 nter
                    pret
                       ati
                         oncanbepr
                                 obl
                                   em.
Tr
 aini
    ngexper
          ienceandcommonsensear
                              erequi
                                   redf
                                      orCol
                                          l
                                          ect
                                            ionsoft
                                                  he
i
nfor
   mat
     ion ar
          e needed t
                   o do anal
                           ysi
                             s. Once anal
                                        ysi
                                          siscompl
                                                 eted,t
                                                      he
anal
   ysthasf
         ir
          m under
                standi
                     ngofwhati
                             stobedone.Thenextst
                                               epi
                                                 sto
deci
   dehow t
         hepr
            obl
              em mi
                  ghtbesol
                         ved.Thusi
                                 nsyst
                                     em desi
                                           gn,webe
movef
    rom t
        hel
          ogi
            cal
              tot
                hephysi
                      cal
                        aspect
                             soft
                                hel
                                  i
                                  fecycl
                                       e.
TheI
   nit
     ial
       Invest
            igat
               ionandI
                     dent
                        if
                         icat
                            ionofneed:
   The mostcr
            it
             icalphas
                    e ofmanagi
                             ng syst
                                   em pr
                                       oject
                                           sispl
                                               anni
                                                  ng t
                                                     o
l
aunchasyst
         em i
            nvest
                igat
                   ion,weneedpl
                              andet
                                  ail
                                    i
                                    ngt
                                      hest
                                         epst
                                            obet
                                               aken,
t
he peopl
       eto be quest
                  ioned and t
                            hey outcome expect
                                             ed.The i
                                                    nit
                                                      ial
i
nvest
    igat
       ionhast
             heobj
                 ect
                   iveofdet
                          ermi
                             ningwhet
                                    hert
                                       heuser
                                            srequesthas
pot
  ent
    ialmer
         it
          .Themaj
                ors
                  tepsar
                       edef
                          ini
                            nguserr
                                  equi
                                     rement
                                          s.Whent
                                                he
i
nit
  iali
     nvest
         igat
            ioni
               scompl
                    eted.Theuserr
                                ecei
                                   vesapr
                                        oposalsummar
                                                   izi
                                                     ng
t
hef
  indi
     ngt
       her
         ecommendat
                  ionoft
                       heanal
                            yst
                              .
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
    Akeypar
          toffeasibi
                   l
                   it
                    yanal
                        ysi
                          sisgat
                               her
                                 ingi
                                    nformati
                                           onaboutt
                                                  hepresent
syst
   em.Theanalystknowswhati
                         nfor
                            mati
                               ontogather,wher
                                             etofi
                                                 ndit
                                                    ,howto
coll
   ecti
      tandwhat
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
tomakeofi   t
            .Thepr operus eoftoolsforgather
                                          inginformati
                                                     onist hekeyt o
succes  sf
         ulanal
              ysis.Thetoolsar
                            et hetradi
                                     ti
                                      onali
                                          ntervi
                                               ew,questionnair
                                                             e,and
on- sit
      e observat
               ion.We need t o know,f orexampl e how to st
                                                         ructure an
i
nter vi
      ew,whatmakesup a quest    ionnai
                                     re,and whatt  olookf oron- si
                                                                 te
obser vati
         ons. These t ools when l  ear
                                     ned help anal ysi
                                                     s assess t  he
effectiveness oft he presentsystem and pr ovide the groundwor kf or
recommendi  ngacandi datesyst
                            em.
I
dent
   if
    icat
       ionofneed
Thesyst
      em needaccompl
                   i
                   sht
                     hef
                       oll
                         owi
                           ngf
                             unct
                                ions:
   The syst
           em shoul
                  d al
                     l
                     ow t
                        he count
                               erassi
                                    stant
                                        sto handl
                                                eti
                                                  cket
                                                     ing and
     r
     efunds.
   Whi
      l
      e accept
             ing r
                 eser
                    vat
                      ion dat
                            a,al
                               lnecessar
                                       y val
                                           i
                                           dat
                                             ions shoul
                                                      d be
     per
       for
         med.
    Forexampl  e,t
                 hesyst em shoul dcheckwhet    heraf   l
                                                       i
                                                       ghtoper  at
                                                                 esont he
    dateoft ravelspecif
                      iedbyt  hepassenger   .Itshoul dal socheckt  heseat
    avail
        abili
            tystatus.Afteralldatahasaccept    ed,t  hesyst em shoul dpri
                                                                       nt
    theticket.Itshouldal sostor ethepassengerdet      ai
                                                       ls,updat ethedai l
                                                                        y
    coll
       ections,andupdat etheseatpl  an.
   I
    ncaseofcancel    l
                     ati
                       on,t hesyst em shoul  dacceptt    hePNR number
    from theuser ,vali
                     datethePNRnumberandupdat          et hecancel lat
                                                                     ion
    fl
     agfort hepassenger .Thesyst em shoul  dthenpr   i
                                                     ntther efundreceipt
                                                                       .
    I
    tshoul dalsoupdat ethedai lycoll
                                   ectionst or  ef
                                                 lectt her efundamount .
    Thest atusofover bookedandwai    t-
                                      listedt icketsshoul  dbechanged
    wheneveraconf   i
                    rmedt i
                          cketiscancel led.
   Thes ystem shouldgener atethef oll
                                     owi ngr epor ts:
       .Conf
       1   ir
            medpassengerl
                        i
                        st
       2.Wai
           ti
            ngl
              i
              st
       3.Dai
           l
           ycol
              l
              ect
                ionr
                   epor
                      t
I
naddi
    ti
     on,t
        henew syst
                 em shoul
                        dpr
                          ovi
                            def
                              aci
                                l
                                it
                                 atepassenger
                                            stoper
                                                 for
                                                   m
t
hef
  oll
    owi
      ngt
        asks
           :
   Checkt
         hewai
             ti
              ngl
                i
                sts
                  tat
                    us.
   Vi
     ewr
       atesf
           ordi
              ff
               erentsect
                       ors.
                                           “
                                           AIRLI
                                               NESRESERVATI
                                                          ONSYSTEM”
  Vi
    ew f
       li
        ghtschedul
                 esf
                   oraspeci
                          fi
                           cper
                              iod.Thi
                                    smodul
                                         eshoul
                                              dbe
  devel
      opedasanaf
               fi
                li
                 atepr
                     ogr
                       am t
                          hatcanbeeasi
                                     l
                                     yint
                                        egr
                                          atedwi
                                               th
  var
    iousWebsi
            tes.
PLATFORM USED
Har
  dwar
     eRequi
          rement
  1
  . Pent
       ium Pr
            ocessororabove
  2.Col
      orMoni
           tor
  3.Keyboar
          d
  4.8GBHar
         dDi
           skorabove
5.32MBRAM orabove
  6.1
    .44MBFl
          oppyDi
               skDr
                  ive
  7.Speaker
          s
                              “
                              AIRLI
                                  NESRESERVATI
                                             ONSYSTEM”
 Sof
   twar
      eRequi
           rement
1
. Wi
   ndows9xorMS-
              DOS6.
                  22
2. Tur
     boC++Compi
              l
              er
3. Tur
     boC++Edi
            tororanyot
                     hert
                        extedi
                             tor
                    “
                    AIRLI
                        NESRESERVATI
                                   ONSYSTEM”
           PROJECTANALYSI
                        S
       (
       OOPS–Obj
              ectOr
                  ient
                     edPr
                        ogr
                          ammi
                             ngSyst
                                  em)
Obj
  ectOr
      ient
         ed Pr
             ogr
               ammi
                  ng i
                     samet
                         hod ofpr
                                ogr
                                  ammi
                                     ng t
                                        hatseekst
                                                o
mi
 mict
    hewaywef
           orm model
                   soft
                      hewor
                          ld.Tocopewi
                                    tht
                                      hecompl
                                            exi
                                              ti
                                               esof
l
i
fe,we have evol
              ved a wonder
                         fulcapaci
                                 tyt
                                   o gener
                                         ali
                                           ze,cl
                                               assi
                                                  fy and
gener
    ate abst
           ract
              ions
                 .Al
                   mostever
                          ynoun i
                                n ourvocabul
                                           aryr
                                              epr
                                                esent
                                                    sa
cl
 assofobj
        ect
          sshar
              ingsomesetofat
                           tr
                            ibut
                               esorbehavi
                                        oral
                                           trai
                                              ts.
Theent
     ir
      ebasi
          sofObj
               ectOr
                   ient
                      edPr
                         ogr
                           ammi
                              ng,i
                                 nfecti
                                      sdef
                                         ini
                                           ngt
                                             heObj
                                                 ect
i
nObj
   ectOr
       ient
          edPr
             ogr
               ammi
                  ng.Obj
                       ecti
                          sauni
                              tthatcombi
                                       nesbot
                                            hcode
anddat
     atoget
          her
            .Andanobj  sani
                    ecti  nst
                            anceofacl
                                    ass.Cl
                                         assi
                                            sat
                                              ypeof
dat
  ast
    ruct
       uredef
            inedt
                ohol  hdat
                   dbot  aandt
                             hecodef
                                   unct
                                      ions.
Obj
  ectOr
      ient
         edPr
            ogr
              ammi
                 ngal
                    soal
                       l
                       owsyout
                             odesi
                                 gnandi
                                      mpl
                                        ementyour
appl
   i
   cat
     ion mor
           e qui
               ckl
                 ythan t
                       radi
                          ti
                           onalappr
                                  oaches. Obj
                                            ect Or
                                                 ient
                                                    ed
Pr
 ogr
   ammi
      ngal
         somakescodeeasi
                       ert
                         omai
                            ntai
                               nsot
                                  hatyoucanr
                                           efi
                                             net
                                               he
i
mpl
  ement
      ati
        onwi
           thoutcausi
                    ngmaj
                        orpr
                           obl
                             ems.
Si
 nceobj
      ect-
         ori
           ent
             edpr
                ogrammi
                      ngwasf undamentalt
                                       othedevel
                                               opmentofC++,
i
t
i
simpor
     tantt
         odefi
             nepr
                eci
                  sel
                    ywhatobj
                           ect-ori
                                 ent
                                   edprogrammingis.Obj
                                                     ect
-
ori
  ent
    edpr
       ogr
         ammi
            nghast
                 akent
                     hebesti
                           deasofst
                                  ruct
                                     uredpr
                                          ogr
                                            ammi
                                               ng
andhascombi
          nedt
             hem wi
                  thsever
                        alpower
                              fulconcept
                                       sthatal
                                             l
                                             ow yout
                                                   o
or
 gani
    zeyourpr
           ogr
             amsmor
                  eef
                    fect
                       ivel
                          y.I
                            ngener
                                 al,whenpr
                                         ogr
                                           ammi
                                              ngi
                                                n
anobj
    ect
      -or
        ient
           edf
             ashi
                on,youdecomposeapr
                                 obl
                                   em i
                                      ntoi
                                         tsconst
                                               it
                                                uent
par
  ts.Eachcomponentbecomesas
                          elf
                            -cont
                                ainedobj
                                       ectt
                                          hatcont
                                                ainsi
                                                    ts
own i
    nst
      ruct
         ions and dat
                    arel
                       ated t
                            othatobj
                                   ect
                                     .Thr
                                        ough t
                                             his pr
                                                  ocess,
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
compl
    exi
      tyi
        sreducedandyoucanmanagel
                               argerpr
                                     ogr
                                       ams.
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
Encapsul
       ati
         on
As you pr
        obabl
            y know, al
                     l pr
                        ogr
                          ams ar
                               e composed of t
                                             wo
f
undament
       alel
          ement
              s:pr
                 ogr
                   am st
                       atement
                             s(code)anddat
                                         a.Codei
                                               s
t
hatpar
     tofa pr
           ogr
             am t
                hatper
                     for
                       ms act
                            ions,and dat
                                       aist
                                          he
i
nfor
   mat
     ionaf
         fect
            edbyt
                hoseact
                      ions.Encapsul
                                  ati
                                    oni
                                      sapr
                                         ogr
                                           ammi
                                              ng
mechani
      sm t
         hatbi
             ndst
                oget
                   hercodeandt
                             hedat
                                 aitmani
                                       pul
                                         ates
                                            ,and
t
hatkeepsbot
          hsaf
             efr
               om out
                    sidei
                        nter
                           fer
                             enceandmi
                                     suse.
I
nanobj
     ect
       -or
         ient
            edl
              anguage,codeanddat
                               amaybeboundt
                                          oget
                                             her
i
nsuchawayt
         hatasel
               f-cont
                    ainedbl
                          ackboxi
                                scr
                                  eat
                                    ed.Wi
                                        thi
                                          nthebox
ar
 e al
    lnecessar
            y dat
                a and code.When code and dat
                                           a ar
                                              eli
                                                nked
t
oget
   heri
      nthi
         sfashi
              on,anobj
                     ecti
                        scr
                          eat
                            ed.I
                               not
                                 herwor
                                      ds,anobj
                                             ecti
                                                s
t
hedevi
     cet
       hatsuppor
               tsencapsul
                        ati
                          on.
Wi
 thi
   nanobj
        ect
          ,thecode,dat
                     a,orbot
                           hmaybepr
                                  ivat
                                     etot
                                        hatobj
                                             ector
publ
   i
   c.Pr
      ivat
         ecodeordat
                  aisknownt
                          o,andaccessi
                                     bleonl
                                          yby,anot
                                                 her
par
  toft
     heobj
         ect
           .
Thati
    s,pr
       ivat
          ecodeordat
                   amaynotbeaccessedbyapi
                                        eceoft
                                             hepr
                                                ogr
                                                  am
t
hatexi
     stsout
          sidet
              heobj
                  ect
                    .Whencodeordat
                                 aispubl
                                       i
                                       c,ot
                                          herpar
                                               tsof
yourpr
     ogr
       am mayaccessi
                   t,event
                         houghi
                              tisdef
                                   inedwi
                                        thi
                                          nanobj
                                               ect
                                                 .
Typi
   cal
     l
     y,t
       hepubl
            i
            cpar
               tsofanobj
                       ect
ar
 eusedt
      opr
        ovi
          deacont
                rol
                  l
                  edi
                    nter
                       facet
                           othepr
                                ivat
                                   eel
                                     ement
                                         soft
                                            heobj
                                                ect
                                                  .
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
Pol
  ymor
     phi
       sm
Pol
  ymor
     phi
       sm (
          from t
               heGr
                  eek,meani
                          ng“
                            manyf
                                orms”
                                    )ist
                                       hequal
                                            i
                                            tyt
                                              hat
al
 l
 owsonei
       nter
          facet
              obeusedf
                     oragener
                            alcl
                               assofact
                                      ions.Thespeci
                                                  fi
                                                   c
act
  ioni
     sdet
        ermi
           nedbyt
                heexactnat
                         ureoft
                              hesi
                                 tuat
                                    ion.Asi
                                          mpl
                                            eexampl
                                                  e
ofpol
    ymor
       phi
         sm i
            sfoundi
                  nthe
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
St
 eer
   ingwheelofanaut
                 omobi
                     l
                     e.Thest
                           eer
                             ingwheel(
                                     i.
                                      e.,t
                                         hei
                                           nter
                                              face)i
                                                   sthe
samenomat
        terwhatt
               ypeofact
                      ualst
                          eer
                            ingmechani
                                     sm i
                                        sused.Thati
                                                  s,t
                                                    he
st
 eer
   ingwheelwor
             kst
               hesamewhet
                        heryourcarhasmanualst
                                            eer
                                              ing,power
st
 eer
   ing,orr
         ack-
            and-
               pini
                  on s
                     teer
                        ing.Ther
                               efor
                                  e,once you know how t
                                                      o
oper
   atet
      hest
         eer
           ingwheel
                  ,youcandr
                          ive
anyt
   ypeofcar
          .Thesamepr
                   inci
                      plecanal
                             soappl
                                  ytopr
                                      ogr
                                        ammi
                                           ng.For
exampl
     e,consi
           der
a st
   ack(
      whi
        ch i
           sa f
              ir
               st-
                 in,l
                    ast
                      -outl
                          i
                          st)
                            .You mi
                                  ghthave a pr
                                             ogr
                                               am t
                                                  hat
r
equi
   rest
      hreedi
           ff
            erentt
                 ypesofs
                       tacks
                           .Onest
                                acki
                                   susedf
                                        ori
                                          ntegerval
                                                  ues,
one f
    orf
      loat
         ing-
            poi
              ntval
                  ues,and one f
                              orchar
                                   act
                                     ers.I
                                         nthi
                                            s case,t
                                                   he
al
 gor
   it
    hm t
       hati
          mpl
            ement
                seachst
                      ack
i
sthe same,even t
               hough t
                     he dat
                          abei
                             ng st
                                 ored di
                                       ff
                                        ers.I
                                            n anon-
                                                  obj
                                                    ect
                                                      -
or
 ient
    edl
      anguage,youwoul
                    dber
                       equi
                          redt
                             ocr
                               eat
                                 ethr
                                    eedi
                                       ff
                                        erentset
                                               sof
st
 ackr
    out
      ines
         ,cal
            l
            ingeachs
                   et
byadi
    ff
     erentname,wi
                theachsethavi
                            ng i
                               tsowni
                                    nter
                                       face.However
                                                  ,
becauseofpol
           ymor
              phi
                sm,i
                   nC++youcancr
                              eat
                                eonegener
                                        alsetofst
                                                ack
r
out
  ines(
      onei
         nter
            face)t
                 hatwor
                      ksf
                        oral
                           lt
                            hreespeci
                                    fi
                                     csi
                                       tuat
                                          ions.Thi
                                                 sway,
onceyouknowhowt
              ouseonest
                      ack,youcanuset
                                   hem al
                                        l
                                        .
Mor
  egener
       all
         y,t
           heconceptofpol
                        ymor
                           phi
                             sm i
                                sof
                                  tenexpr
                                        essedbyt
                                               he
phr
  ase“
     onei
        nter
           face,mul
                  ti
                   plemet
                        hods.
                            ”Thi
                               smeanst
                                     hati
                                        tispossi
                                               ble
t
o desi
     gn a gener
              ic i
                 nter
                    face t
                         o a gr
                              oup of r
                                     elat
                                        ed act
                                             ivi
                                               ti
                                                es.
Pol
  ymor
     phi
       sm hel
            psr
              educecompl
                       exi
                         tybyal
                              l
                              owi
                                ngt
                                  hesamei
                                        nter
                                           face
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
t
obeusedt
       ospeci
            fyagener
                   alcl
                      assofact
                             ion.I
                                 tist
                                    he
compi
    l
    er’
      sjobt
          osel
             ectt
                hespeci
                      fi
                       cact
                          ion(
                             i.
                              e.,met
                                   hod)asi
                                         tappl
                                             i
                                             est
                                               oeach
si
 tuat
    ion.You,t
            hepr
               ogr
                 ammer
                     ,don’
                         tneedt
                              odot
                                 hissel
                                      ect
                                        ionmanual
                                                l
                                                y.You
needonl
      y
r
ememberandut
           il
            i
            zet
              hegener
                    ali
                      nter
                         face.
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
The f
    ir
     stobj
         ect
           -or
             ient
                ed pr
                    ogr
                      ammi
                         ng l
                            anguages wer
                                       eint
                                          erpr
                                             eter
                                                s,so
pol
  ymor
     phi
       sm was,ofcour
                   se,suppor
                           tedatr
                                unt
                                  ime.However
                                            ,C++i
                                                sa
compi
    l
    ed l
       anguage.Ther
                  efor
                     e,i
                       n C++,bot
                               hrun-
                                   ti
                                    me and compi
                                               l
                                               e-t
                                                 ime
pol
  ymor
     phi
       sm ar
           esuppor
                 ted.
I
nher
   it
    ance
I
nher
   it
    ancei
        sthepr
             ocessbywhi
                      choneobj
                             ectcanacqui
                                       ret
                                         hepr
                                            oper
                                               ti
                                                es
ofanot
     herobj
          ect
            .The r
                 eason t
                       hisi
                          simpor
                               tanti
                                   sthati
                                        tsuppor
                                              tst
                                                he
conceptofhi
          erar
             chi
               calcl
                   assi
                      fi
                       cat
                         ion.I
                             fyout
                                 hinkabouti
                                          t,mostknowl
                                                    edge
i
smademanageabl
             ebyhi
                 erar
                    chi
                      cal(
                         i.
                          e.,t
                             op-
                               down)cl
                                     assi
                                        fi
                                         cat
                                           ions
                                              .For
exampl
     e,aRedDel
             i
             ciousappl
                     eispar
                          toft
                             hecl
                                assi
                                   fi
                                    cat
                                      ionappl
                                            e,whi
                                                chi
                                                  n
t
urni
   spar
      toft
         hef
           rui
             tcl
               ass,whi
                     chi
                       sundert
                             hel
                               argercl
                                     assf
                                        ood.Thati
                                                s,
t
hef
  oodcl
      asspossessescer
                    tai
                      nqual
                          i
                          ti
                           es(
                             edi
                               ble,nut
                                     ri
                                      ti
                                       ous
                                         ,et
                                           c.)t
                                              hatal
                                                  so
appl
   y,l
     ogi
       cal
         l
         y,t
           oit
             sfr
               uitsubcl
                      ass
                        .Inaddi
                              ti
                               ont
                                 othesequal
                                          i
                                          ti
                                           es,t
                                              hef
                                                rui
                                                  t
cl
 asshasspeci
           fi
            cchar
                act
                  eri
                    sti
                      cs(
                        jui
                          cy,sweet
                                 ,et
                                   c.)t
                                      hatdi
                                          sti
                                            ngui
                                               shi
                                                 tfr
                                                   om
ot
 herf
    ood.Theappl
              ecl
                assdef
                     inest
                         hosequal
                                i
                                ti
                                 esspeci
                                       fi
                                        ctoanappl
                                                e
(
growsont
       rees
          ,nott
              ropi
                 cal
                   ,et
                     c.)
                       .ARedDel
                              i
                              ciousappl
                                      ewoul
                                          d,i
                                            ntur
                                               n,
i
nher
   ital
      lthequal
             i
             ti
              esofal
                   lpr
                     ecedi
                         ngcl
                            asses,andwoul
                                        ddef
                                           ineonl
                                                ythose
qual
   i
   ti
    est
      hatmakei
             tuni
                que.
Wi
 thoutt
      he use ofhi
                erar
                   chi
                     es,each obj
                               ectwoul
                                     d have t
                                            o expl
                                                 i
                                                 cit
                                                   ly
def
  ineal
      lof i
          tschar
               act
                 eri
                   sti
                     cs.However
                              ,usi
                                 ngi
                                   nher
                                      it
                                       ance,anobj
                                                ect
needst
     odef
        ineonl
             ythose
qual
   i
   ti
    est
      hatmakei
             tuni
                quewi
                    thi
                      nit
                        scl
                          ass.I
                              tcani
                                  nher
                                     iti
                                       tsgener
                                             al
                                      “
                                      AIRLI
                                          NESRESERVATI
                                                     ONSYSTEM”
at
 tr
  ibut
     esf
       rom i
           tspar
               ent
                 .Thus,i
                       tist
                          he i
                             nher
                                it
                                 ance mechani
                                            sm t
                                               hat
makesi
     tpossi
          blef
             oroneobj
                    ectt
                       obeaspeci
                               fi
                                cinst
                                    anceofamor
                                             e
gener
    alcase.
C++I
   mpl
     ement
         sOOP
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
Asyouwi
      l
      lseeasyoupr
                ogr
                  esst
                     hrought
                           hisbook,manyoft
                                         hef
                                           eat
                                             ures
ofC++ exi
        stt
          opr
            ovi
              desuppor
                     tforencapsul
                                ati
                                  on,pol
                                       ymor
                                          phi
                                            sm,and
i
nher
   it
    ance.Remember
                ,however
                       ,thatyoucanuseC++t
                                        owr
                                          it
                                           eanyt
                                               ype
ofpr
   ogr
     am,usi
          ng anyt
                ype ofappr
                         oach.The f
                                  actt
                                     hatC++ suppor
                                                 ts
obj
  ect
    -or
      ient
         ed pr
             ogr
               ammi
                  ng doesnotmean t
                                 hatyou can onl
                                              ywr
                                                it
                                                 e
obj
  ect
    -or
      ient
         ed pr
             ogr
               ams.As wi
                       thi
                         ts pr
                             edecessor
                                     ,C,one ofC++’
                                                 s
st
 rongestadvant
             agesi
                 sit
                   sfl
                     exi
                       bil
                         i
                         ty.
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
                    RI
                     SKANALYSI
                             S
  Pr
   ojectRi
         sk:I
            tident
                 if
                  y pot
                      ent
                        ialbudget
                                ary,schedul
                                          e,per
                                              sonnel
                                                   ,resour
                                                         ce,
cust
   omer
      ,andr
          equi
             rement
                  spr
                    obl
                      emsandt
                            hei
                              rimpactonsof
                                         twar
                                            e.Al
                                               ltheabove
f
act
  orsar
      eanal
          yzed,cust
                  omerr
                      equi
                         rement
                              sar
                                eanal
                                    yzedpr
                                         oper
                                            ly.
  Techni
       cal Ri
            sk: I
                tident
                     if
                      ies pot
                            ent
                              ial desi
                                     gn, i
                                         mpl
                                           ement
                                               ati
                                                 on, i
                                                     nter
                                                        face,
ver
  if
   icat
      ion,andmai
               ntenancepr
                        obl
                          ems.Al
                               lt
                                heabovef
                                       act
                                         orshavebeenanal
                                                       yzed.
  Busi
     nessRi
          sk:(
             1)Sof
                 twar
                    eisdevel
                           opedkeepi
                                   ngi
                                     nmi
                                       ndt
                                         hatt
                                            her
                                              eisdemandi
                                                       n
cust
   om,sot
        hatt
           oavoi
               dthemar
                     ketr
                        isk.(
                            2)Sof
                                twar
                                   eisdesi
                                         gnedt
                                             ofi
                                               tint
                                                  othe
over
   allbusi
         nessst
              rat
                egyf
                   ort
                     hecust
                          om depar
                                 tment
                                     ,toavoi
                                           dthest
                                                rat
                                                  egi
                                                    cri
                                                      sk.(
                                                         3)
Thesof
     twar
        eiseasi
              l
              yunder
                   standabl
                          ebyt
                             hesal
                                 esper
                                     son’
                                        steam,sot
                                                hatt
                                                   heycoul
                                                         d
know muchaboutt
              hepr
                 oductwor
                        kingandsel
                                 lint
                                    hemar
                                        ket
                                          .(4)I
                                              thast
                                                  hest
                                                     rong
managementsuppor
               t,andnotl
                       i
                       kel
                         ytochangei
                                  nthemanagementpeopl
                                                    etoavoi
                                                          d
t
hemanagementr
            isk.
    (
    5)Sof
        twar
           efi
             tst
               hebudgetandt
                          her
                            eisnobudgetr
                                       isk.
                                    “
                                    AIRLI
                                        NESRESERVATI
                                                   ONSYSTEM”
       OJBECTORI
               ENTEDDEVELOPMENT
Anobj
    ect
      -or
        ient
           edsyst
                em dr
                    awsuponcl
                            assdef
                                 ini
                                   ti
                                    onst
                                       hatar
                                           eder
                                              ived
f
rom t
    heanal
         ysi
           smodel
                .Someoft
                       hesedef
                             ini
                               ti
                                onswi
                                    l
                                    lhavet
                                         obebui
                                              l
                                              t
f
rom scr
      atch,butmanyot
                   her
                     smayber
                           eused i
                                 tappr
                                     opr
                                       iat
                                         edesi
                                             gn
pat
  ter
    nsar
       erecogni
              zed.Obj
                    ectOr
                        ient
                           edDesi
                                gnest
                                    abl
                                      i
                                      shesadesi
                                              gn
bl
 uepr
    intt
       hatenabl
              esasof
                   twar
                      eengi
                          neert
                              odef
                                 inet
                                    heObj
                                        ectOr
                                            ient
                                               ed
ar
 chi
   tect
      urei
         n a mannert
                   hatmaxi
                         mized r
                               euse,t
                                    her
                                      eby i
                                          mpr
                                            ovi
                                              ng
devel
    opmentspeedandend-
                     productqual
                               i
                               ty.
Thef
   ourl
      ayer
         soft
            heObj
                ectOr
                    ient
                       eddesi
                            gnar
                               e:
Thesubsyst
         em l
            ayer
               :Itr
                  epr
                    esent
                        seachoft
                               hesubsyst
                                       emst
                                          hatenabl
                                                 e
t
he sof
     twar
        eto achi
               eve i
                   ts cust
                         omer
                            -def
                               ined r
                                    equi
                                       rement
                                            s and t
                                                  o
i
mpl
  ement t
        he t
           echni
               cal i
                   nfr
                     ast
                       ruct
                          ure t
                              hat suppor
                                       ts cust
                                             omer
r
equi
   rement
        s,i
          nthecust
                 om depar
                        tment
                            .
Thecl
    assandobj
            ectl
               ayer
                  :Itcont
                        ainst
                            hecl
                               asshi
                                   erar
                                      chi
                                        est
                                          hatenabl
                                                 e
t
hesyst
     em t
        obecr
            eat
              edusi
                  nggener
                        ali
                          zat
                            ionsandi
                                   ncr
                                     easi
                                        ngl
                                          ymor
                                             e
t
arget
    edspeci
          ali
            zat
              ions.
Themessagel
          ayer
             :Itcont
                   ainst
                       hedesi
                            gndet
                                ail
                                  sthatenabl
                                           eeachobj
                                                  ect
t
ocommuni
       cat
         ewi
           thi
             tscol
                 l
                 abor
                    ator
                       s.Thi
                           slayerest
                                   abl
                                     i
                                     shest
                                         heex
                                            ter
                                              nal
andi
   nter
      sint
         erf
           acesf
               ort
                 hesof
                     twar
                        e.
Ther
   esponsi
         bil
           i
           ti
            esl
              ayer
                 :Itcont
                       ainst
                           hedat
                               ast
                                 ruct
                                    ureandal
                                           gor
                                             it
                                              hmi
                                                c
desi
   gnf
     oral
        lat
          tr
           ibut
              esandoper
                      ati
                        onsf
                           oreachobj
                                   ect
                                     .
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
          WORKFLOW THEPROJECT
 Usercan vi
           ew l
              i
              stofst
                   ati
                     onsal
                         ong wi
                              tht
                                hei
                                  rcode,char
                                           gesf
                                              or
 documentandnon-
               documentbysel
                           ect
                             ingopt
                                  ion1f
                                      rom t
                                          hemai
                                              n
 menu.
 Usercanbookt
             hecour
                  ierbysel
                         ect
                           ingopt
                                ion2f
                                    rom t
                                        hemai
                                            nmenu.
 User
    shavet
         oinputdet
                 ail
                   sofcour
                         ier
                           ,consi
                                gnorandconsi
                                           gnee,and
 dat
   aissavedi
           nthef
               il
                e–cus
                    tomer
                        .at
                          .
 Usercansear
            chf
              orst
                 ati
                   oni
                     nfor
                        mat
                          ionbygi
                                vi
                                 ngst
                                    ati
                                      oncode,by
 sel
   ect
     ingopt
          ion3f
              rom t
                  hemai
                      nmenu.
 Usercansear
            chandvi
                  ewcust
                       omerdet
                             ail
                               sbysel
                                    ect
                                      ingopt
                                           ion4f
                                               rom
 t
 hemai
     nmenu.
 Usercanvi
          ew dai
               l
               ybooki
                    ngst
                       atusbysel
                               ect
                                 ingopt
                                      ion1f
                                          rom t
                                              her
                                                epor
                                                   t
  menu.
 Usercanvi
          ew mont
                hlybooki
                       ngst
                          atusbysel
                                  ect
                                    ingopt
                                         ion2f
                                             rom t
                                                 he
 r
 epor
    tmenu.
 Usercanadd,modi
                fyordel
                      etest
                          ati
                            onr
                              ecor
                                 dsbysel
                                       ect
                                         ingopt
                                              ion1
                                                 ,
 2or3f
     rom t
         heedi
             tst
               ati
                 onmenu.
                               “
                               AIRLI
                                   NESRESERVATI
                                              ONSYSTEM”
               FEASI
                   BILI
                      TYSTUDY
St
 epsi
    nfeasi
         bil
           i
           tyanal
                ysi
                  s
Ei
 ghtst
     epsar
         einvol
              vedi
                 nthef
                     easi
                        bil
                          i
                          tyanal
                               ysi
                                 s.Theyar
                                        e:
 1
 .For
    m apr
        ojectt
             eam andappoi
                        ntapr
                            ojectl
                                 eader
                                     .
 2.Pr
    epar
       esyst
           em f
              lowchar
                    ts.
 3.Enumer
        atepot
             ent
               ial
                 proposedsyst
                            ems.
 4.Def
     ineandi
           dent
              if
               ychar
                   act
                     eri
                       sti
                         csofpr
                              oposedsyst
                                       em.
 5.Det
     ermi
        neandeval
                uat
                  eper
                     for
                       manceandcostef
                                    fect
                                       ivenessof
   eachpr
        oposedsyst
                 em.
 6.Wei
     ghtsyst
           em per
                for
                  manceandcostdat
                                a.
 7.Sel
     ectt
        hebestpr
               oposedsyst
                        em.
 8.Pr
    epar
       eandr
           epor
              tfi
                nal
                  proj
                     ectdi
                         rect
                            ivet
                               omanagement
                              “
                              AIRLI
                                  NESRESERVATI
                                             ONSYSTEM”
                    SYSTEM DESI
                              GN
I
ntr
  oduct
      ion
      Syst
         em desi
               gn pr
                   ovi
                     des t
                         he under
                                standi
                                     ngs and pr
                                              ocedur
                                                   aldet
                                                       ail
                                                         s
necess
     aryf
        ori
          mpl
            ement
                ingt
                   hes
                     yst
                       em r
                          ecommendedi
                                    nthesyst
                                           em st
                                               udy.
Emphasi
      sison t
            he t
               ransl
                   ati
                     ng t
                        he per
                             for
                               mance r
                                     equi
                                        rement
                                             sint
                                                o desi
                                                     gn
speci
    fi
     cat
       ions.Thedesi
                  gnhasi
                       sat
                         ransi
                             ti
                              onf
                                rom auser
                                        -or
                                          ient
                                             eddocument
(
Syst
   em pr
       oposal
            )toadocumentor
                         ient
                            edt
                              othepr
                                   ogr
                                     ammer
                                         sordat
                                              abase
per
  sonnel
       .
      Syst
         em desi
               gngoest
                     hrought
                           wophasesofdevel
                                         opment
                                              :
        1
        )    Logi
                cal
                  Desi
                     gn
        2)   Physi
                 cal
                   Des
                     ign
      Adat
         afl
           owdi
              agr
                am showst
                        hel
                          ogi
                            calf
                               lowoft
                                    hesyst
                                         em.Foras
                                                yst
                                                  em
i
tdescr
     ibest
         hei
           nput(
               sour
                  ce)
                    ,out
                       put(
                          dest
                             inat
                                ion)
                                   ,FI
                                     LE(
                                       dat
                                         ast
                                           ores)and
pr
 ocedur
      es(
        dat
          afl
            ows)al
                 linaf
                     ormatt
                          hatmeet
                                stheuser
                                       ’sr
                                         equi
                                            rement
                                                 .
Whenanal
       ysi
         spr
           epar
              ethel
                  ogi
                    cal
                      syst
                         em desi
                               gn,t
                                  heyspeci
                                         fyt
                                           heuserneeds
atal
   evelofdet
           ailt
              hatvi
                  rt
                   ual
                     l
                     ydet
                        ermi
                           nest
                              hei
                                nfor
                                   mat
                                     ionf
                                        low i
                                            ntoanoutof
t
hesys
    tem andt
           her
             equi
                reddat
                     aresour
                           ces.Thel
                                  ogi
                                    caldesi
                                          gnal
                                             sospeci
                                                   fi
                                                    es
i
nputf
    ormsandscr
             eenl
                ayout
                    s.
      Theact
           ivi
             ti
              esf
                oll
                  owi
                    ngl
                      ogi
                        caldesi
                              gnar
                                 ethepr
                                      ocedur
                                           efol
                                              l
                                              owedi
                                                  nthe
physi
    caldes
         ign e.
              g.,pr
                  oduci
                      ng pr
                          ogr
                            ams,sof
                                  twar
                                     e,f
                                       il
                                        e and a wor
                                                  king
syst
   em.Desi
         gnspeci
               fi
                cat
                  ionsi
                      nst
                        ructt
                            heuseraboutwhatt
                                           hesyst
                                                em shoul
                                                       d
do.
Logi
   cal
     andOut
          putDesi
                gn:
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
    The l
        ogi
          caldesi
                gn ofan i
                        nfor
                           mat
                             ion syst
                                    em i
                                       s anal
                                            ogous t
                                                  o an
engi
   neer
      ingbl
          uepr
             intofanaut
                      omobi
                          l
                          e.I
                            tshowst
                                  hemaj
                                      orf
                                        eat
                                          uresandhow
t
heyar
    erel
       atedt
           ooneanot
                  her
                    .Thedet
                          ail
                            edspeci
                                  fi
                                   cat
                                     ionf
                                        ort
                                          henewsyst
                                                  em
wasdr
    awnont
         hebasesofuser
                     ’sr
                       equi
                          rementdat
                                  a.Theout
                                         put
                                           sinput
                                                sand
dat
  abasesar
         edesi
             gnedi
                 nthi
                    sphase.
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
    Out
      putdesi
            gni
              soneoft
                    hemosti
                          mpor
                             tantf
                                 eat
                                   uresoft
                                         hei
                                           nfor
                                              mat
                                                ion
syst
   em.Whent
          heout
              puti
                 snotofgoodqual
                              i
                              tyt
                                heuser
                                     swi
                                       l
                                       lbeaver
                                             set
                                               ouse
t
henewl
     ydesi
         gnedsyst
                em andmaynotuset
                               hesyst
                                    em.Ther
                                          ear
                                            emany
t
ypesofout
        put
          ,al
            lofwhi
                 chcanbeei
                         therhi
                              ghl
                                yusef
                                    ulorcanbecr
                                              it
                                               ical
                                                  tot
                                                    he
user
   s,dependi
           ngont
               hemanneranddegr
                             eet
                               owhi
                                  cht
                                    heyar
                                        eused.
    Out
      put
        sfr
          om comput
                  ersyst
                       em ar
                           erequi
                                redpr
                                    imar
                                       il
                                        ytocommuni
                                                 cat
                                                   e
t
her
  esul
     tsofpr
          ocessi
               ngt
                 ouser
                     s;t
                       heyar
                           eal
                             sousedt
                                   opr
                                     ovi
                                       deaper
                                            manent
har
  dcopyoft
         heser
             esul
                tsf
                  orl
                    aterconsul
                             tat
                               ion.Var
                                     ioust
                                         ypesofout
                                                 put
                                                   s
r
equi
   redcanbel
           i
           stedasbel
                   ow:
       Ext
          ernal
              Out
                put
                  s,whosedest
                            inat
                               ioni
                                  sout
                                     sidet
                                         heor
                                            gani
                                               zat
                                                 ion
       I
        nter
           nal
             out
               put
                 s,whosedest
                           inat
                              ioni
                                 swi
                                   tht
                                     heor
                                        gani
                                           zat
                                             ion
     Oper
         ati
           onalout
                 put
                   s,whose use i
                               spur
                                  elywi
                                      thi
                                        nthe comput
                                                  er
        depar
            tmente.
                  g.,pr
                      ogr
                        am-
                          li
                           sti
                             nget
                                c.
     I
      nter
         act
           ive out
                 put
                   s,whi
                       ch i
                          nvol
                             ve t
                                he user i
                                        s communi
                                                cat
                                                  ing
        di
         rect
            lywi
               tht
                 hecomput
                        er,I
                           tispar
                                ti
                                 cul
                                   arl
                                     yimpor
                                          tantt
                                              oconsi
                                                   der
        humanf
             act
               orwhendesi
                        gni
                          ng comput
                                  erout
                                      put
                                        s.Endusermust
        f
        indout
             put
               seasyt
                    ous
                      eandusef
                             ult
                               othei
                                   rjobs,wi
                                          thoutqual
                                                  i
                                                  ty
        out
          put
            ,usermayf
                    ind t
                        he ent
                             ir
                              e syst
                                   em unnecessar
                                               yand avoi
                                                       d
        usi
          ngi
            t.Thet
                 erm“
                    Out
                      put
                        ”inanyi
                              nfor
                                 mat
                                   ionsyst
                                         em mayappl
                                                  yto
        ei
         therpr
              int
                erordi
                     spl
                       ayed i
                            nfor
                               mat
                                 ion.Dur
                                       ing t
                                           he desi
                                                 gni
                                                   ng t
                                                      he
        out
          putf
             ort
               hissyst
                     em,i
                        twast
                            akeni
                                ntoconsi
                                       der
                                         ati
                                           on,whet
                                                 hert
                                                    he
        i
        nfor
           mat
             iont
                obepr
                    esent
                        edi
                          nthef
                              orm ofquer
                                       yofr
                                          epor
                                             tort
                                                o
        cr
         eat
           edocument
                   set
                     c.
    Otheri
         mpor
            tantf
                act
                  orst
                     hatwer
                          etakeni
                                ntoconsi
                                       der
                                         ati
                                           on
    ar
     e:
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
   TheEnduser
             ,whowi
                  l
                  luset
                      heout
                          put
                            .
 Theact
       ual
         usageoft
                hepl
                   annedi
                        nfor
                           mat
                             ion
                           “
                           AIRLI
                               NESRESERVATI
                                          ONSYSTEM”
     Thei
         nfor
            mat
              iont
                 hati
                    snecessar
                            yforpr
                                 esent
                                     ati
                                       on
     Theout
           put
             s(i
               .e.
                 ,wel
                    lfor
                       mat
                         tedt
                            abl
                              eout
                                 put
                                   sint
                                      hescr
                                          eeni
                                             tsel
                                                f)
       desi
          gnedar
               esi
                 mpl
                   etor
                      eadandi
                            nter
                               pret
                                  .
     For
        matofeach out
                    putwasanot
                             heri
                                mpor
                                   tantpoi
                                         ntt
                                           aken i
                                                nto
       consi
           der
             ati
               on.Out
                    putmedi
                          a,f
                            oreachout
                                    putappr
                                          opr
                                            iat
                                              emedi
                                                  ais
       deci
          dedwhet
                heri
                   twi
                     l
                     lbedi
                         spl
                           ayedonscr
                                   eenorwi
                                         l
                                         lbet
                                            akent
                                                o
       pr
        int
          erorbot
                h.
     Ot
       herout
            putdesi
                  gnr
                    elat
                       edspeci
                             fi
                              cat
                                ions,i
                                     .e.
                                       ,how f
                                            requent
                                                  lyt
                                                    he
       out
         put
           s wi
              l
              l be gener
                       ated, how many pages or sheet
                                                   s
       appr
          oxi
            mat
              elyi
                 twi
                   l
                   lkeepup,whati
                               sit
                                 spl
                                   anneduseandout
                                                put
       di
        str
          ibut
             iont
                ouser
                    sar
                      eal
                        sot
                          akeni
                              ntoaccount
                                       .
    These wer
            eaf
              ew maj
                   ordesi
                        gni
                          ng i
                             ssues,whi
                                     ch wer
                                          etaken i
                                                 nto
consi
    der
      ati
        on,whi
             l
             e deci
                  ding t
                       he out
                            putspeci
                                   fi
                                    cat
                                      ionsf
                                          ort
                                            he syst
                                                  em.As
di
 rectbenef
         ici
           aryofr
                epor
                   tsi
                     sthe usercommuni
                                    ty,t
                                       heywer
                                            e consul
                                                   ted
const
    ant
      lyatever
             ylevel
                  .For
                     mat
                       sandscr
                             eendesi
                                   gnf
                                     orvar
                                         iousr
                                             epor
                                                tswer
                                                    e
i
dent
   if
    ied,t
        aki
          ngi
            ntoaccountt
                      heuserr
                            equi
                               rement
                                    s.Bef
                                        oref
                                           inal
                                              i
                                              singt
                                                  hes
                                                    e
wer
  egi
    vent
       ouser
           sforanyi
                  mpr
                    ovementandsuggest
                                    ions.Endus
                                             ersi
                                                ssues
t
akeni
    ntoconsi
           der
             ati
               onwer
                   eReadabi
                          l
                          it
                           y,Rel
                               evanceandAccept
                                             abi
                                               l
                                               it
                                                y.
    Onceal
         ltheout
               putr
                  epor
                     tst
                       o begener
                               ated byHARS syst
                                              em wer
                                                   e
i
dent
   if
    ied,t
        heywer
             e gi
                ven t
                    o user
                         sfort
                             hei
                               raccept
                                     ance.Forpr
                                              otot
                                                 ypi
                                                   ng
var
  iousout
        put
          s,f
            inalout
                  put
                    smodel
                         swer
                            ecr
                              eat
                                edwi
                                   thdummydat
                                            a,bef
                                                ore
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
t
heywer
     efi
       nal
         i
         zed.
Out
  putSour
        ces:
Out
  putcont
        ent
          sori
             ginat
                 efr
                   om t
                      hesesour
                             ces:
     Ret
        ri
         eval
            from adat
                    asour
                        ce.
     Tr
       ansmi
           ssi
             onf
               rom apr
                     ocessorsyst
                               em act
                                    ivi
                                      ty.
     Di
       rect
          lyf
            rom ani
                  nputsour
                         ce.
Thei
   nfor
      mat
        ionpr
            oducedi
                  nanout
                       putcanbepr
                                esent
                                    edas
     Tabul
          arcont
               ent
                 s
     Gr
       aphi
          cfor
             mat
     Usi
        ng
I
cons       Out
             put
Def
  ini
    ti
     on:
 The out
       putshoul
              d be def
                     ined i
                          n
t
ermsof
     :Typesofout
               put
                 s
     Cont
         ent
           -headi
                ngs,numer
                        ic,al
                            phanumer
                                   ic,et
                                       c.,
     For
        mat
          -har
             dcopy,scr
                     een,mi
                          crof
                             il
                              m,et
                                 c.,
     Locat
          ion-
             local
                 ,remot
                      e,t
                        ransmi
                             tt
                              ed,et
                                  c.,
                                    “
                                    AIRLI
                                        NESRESERVATI
                                                   ONSYSTEM”
     Fr
       equency-
              dai
                l
                y,weekl
                      y,hour
                           ly,et
                               c.,
     Response-
              immedi
                   ate wi
                        th i
                           n a
per
  iod,et
       c.,Dat
            ait
              ems
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
 The name gi
           ven t
               o each dat
                        a i
                          tem shoul
                                  d be r
                                       ecor
                                          ded and i
                                                  ts
char
   act
     eri
       sti
         csdescr
               ibedcl
                    ear
                      lyi
                        nast
                           andar
                               dfor
                                  m:
     Whet
         heral
             phanumer
                    icornumer
                            ic
     Legi
         ti
          mat
            eandspeci
                    fi
                     crangeofchar
                                act
                                  eri
                                    sti
                                      cs
     Numberofchar
                 act
                   ers
     Posi
         ti
          onsofdeci
                  mal
                    poi
                      nt,ar
                          it
                           hmet
                              icdesi
                                   gn,et
                                       c.,
I
nputDesi
       gn:
  Thei
     nputdesi
            gni
              sthel
                  i
                  nkt
                    hatt
                       iest
                          hei
                            nfor
                               mat
                                 ionsyst
                                       em i
                                          ntot
                                             heuser
                                                  ’s
wor
  ld.I
     nputspeci
             fi
              cat
                ionsdes
                      cri
                        be t
                           he manneri
                                    n whi
                                        ch dat
                                             a ent
                                                 erst
                                                    he
syst
   em f
      orpr
         ocessi
              ng.I
                 nputdesi
                        gnf
                          eat
                            urescanensur
                                       ether
                                           eli
                                             abi
                                               l
                                               it
                                                yoft
                                                   he
syst
   em andpr
          oducer
               esul
                  tsf
                    rom accur
                            atedat
                                 a,ort
                                     heycanr
                                           esul
                                              tint
                                                 he
pr
 oduct
     ionofer
           roneousi
                  nfor
                     mat
                       ion.
I
nputDesi
       gnconsi
             stsof
     devel
          opi
            ngspeci
                  fi
                   cat
                     ionsandpr
                             ocedur
                                  esf
                                    ordat
                                        apr
                                          epar
                                             ati
                                               on
     St
       epsnecessar
                 ytoputdat
                         aint
                            oausabl
                                  efor
                                     mforpr
                                          ocessi
                                               ng.
     Dat
        aent
           ry,t
              heact
                  ivi
                    tyofput
                          ti
                           ngdat
                               aint
                                  othecomput
                                           erpr
                                              ocessi
                                                   ng.
Obj
  ect
    ivesofI
          nputdesi
                 gn
                                 “
                                 AIRLI
                                     NESRESERVATI
                                                ONSYSTEM”
      Fi
       veobj
           ect
             ivesofdesi
                      gni
                        nputf
                            ocuson
     Cont
         rol
           l
           ingt
              heamountofi
                        nputr
                            equi
                               red
     Avoi
         ddel
            ay
     Avoi
         dinger
              ror
                sindat
                     a
     Avoi
         dingext
               rast
                  eps.
     Keepi
          ngt
            hepr
               ocesssi
                     mpl
                       e.
    I
    nputst
         agessever
                 alact
                     ivi
                       ti
                        eshave t
                               o be car
                                      ri
                                       ed outaspar
                                                 toft
                                                    he
over
   all
     inputpr
           ocess.Theyi
                     ncl
                       udesomeoral
                                 loft
                                    hef
                                      oll
                                        owi
                                          ng.
Dat
  arecor
       ding (
            i.
             e.,col
                  l
                  ect
                    ion of
dat
  a) Dat
       a encapsul
                ati
                  on (
                     i.
                      e.,
t
ransf
    erofdat
          a)
Dat
  aconver
        sion(
            i.
             ,e.
               cont
                  rol
                    l
                    ingt
                       hef
                         lowof
dat
  a)Dat
      atr
        ansmi
            ssi
              on (
                 i.
                  e.,t
                     ranspor
                           ti
                            ng
t
hedat
    a)Dat
        aval
           i
           dat
             ion(
                i.
                 e.,checki
                         ngt
                           he
i
nputdat
      a)Dat
          acor
             rect
                ion(
                   i.
                    e.,cor
                         rect
                            ing
t
heer
   ror
     s)
    I
    nputPer
          for
            mawer
                edesi
                    gned,af
                          teracar
                                efuldi
                                     scussi
                                          onwi
                                             thuser
                                                  s.I
                                                    t
wasat
    tempt
        edt
          ocoveral
                 luserr
                      equi
                         rement
                              s.Desi
                                   gnedPer
                                         for
                                           mawer
                                               egi
                                                 ven
t
ouserf
     oranysuggest
                ionandf
                      inal
                         appr
                            oval
                               .
    Var
      ious dat
             ait
               ems wer
                     eident
                          if
                           ied and wher
                                      evernecessar
                                                 y wer
                                                     e
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
r
ecor
   ded.Ast
         he dat
              a concer
                     ning ofHARS i
                                 svol
                                    umi
                                      nousi
                                          n nat
                                              ure and
numberofcasewi
             l
             lgr
               ow dynami
                       cal
                         l
                         yinf
                            utur
                               e,pr
                                  opercar
                                        ewast
                                            akenf
                                                or
accur
    acyandconsi
              stencyofdat
                        a.
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
     I
     nputdesi
            gnsar
                eai
                  medatr
                       educi
                           ngt
                             hechancesofmi
                                         stakesofer
                                                  ror
                                                    s.
Ast
  he human bei
             ngsar
                 e pr
                    one t
                        o er
                           ror
                             sther
                                 eisal
                                     waysapossi
                                              bil
                                                i
                                                tyof
occur
    renceofchanceofer
                    ror
                      s.Adequat
                              eval
                                 i
                                 dat
                                   ionchecksar
                                             eincor
                                                  por
                                                    ated
t
oensur
     eer
       rorf
          reedat
               ast
                 orage.Someoft
                             hedat
                                 aval
                                    i
                                    dat
                                      ionchecksappl
                                                  i
                                                  ed
ar
 easf
    oll
      owi
        ng:
      Redundancyofdat
                     aischecked.I
                                tmeanst
                                      her
                                        ecor
                                           dsofpr
                                                imar
                                                   y
        keydonotoccurt
                     wice.
      Pr
        imar
           ykeyf
               iel
                 dofanyt
                       abl
                         emustnotbel
                                   eftbl
                                       ank.
      Wher
          everi
              temsar
                   ecoded,i
                          nputcodei
                                  scheckedf
                                          ori
                                            t’
                                             sval
                                                i
                                                dlywi
                                                    th
        r
        espectt
              osever
                   alchecks.
      Ut
        mostcar
              ehasbeent
                      akent
                          oincor
                               por
                                 atet
                                    heval
                                        i
                                        dat
                                          ionateach
        st
         age oft
               he syst
                     em.E.
                         g.when ent
                                  eri
                                    ng r
                                       ecor
                                          dsi
                                            nto empl
                                                   oyee
        i
        nfor
           mat
             ion t
                 abl
                   eforempl
                          oyee,i
                               tischecked t
                                          hatwhet
                                                hert
                                                   he
        cor
          respondi
                 ngempl
                      oyeeexi
                            stsi
                               ntheempl
                                      oyeei
                                          nfor
                                             mat
                                               iont
                                                  abl
                                                    e
        et
         c.,
Enoughmessagesanddi  al
                      ogueboxesar epr ovi
                                        dedwhi ledesignscr een,which
doesguideuserattheti
                   meofanyer rors
                                ,oratti
                                      meofent ry.Thi
                                                   sf eatur
                                                          eprovidesa
user
   -fr
     iendl
         yint
            erfacetonativeusers.I
                                tcanbeemphasi  zedt hatinputdeignsof
HARS system is so desi
                     gned thatitensures easy and err
                                                   orf  r
                                                        ee data entr
                                                                   y
mechanism.Onceonei ssureofi
                          nputdatatheoutputformatt
                                                 ingbecomesar  outi
                                                                  ne
work.
                                        “
                                        AIRLI
                                            NESRESERVATI
                                                       ONSYSTEM”
                PROJECTDESI
                          GN
             Modul
                 es&Pr
                     ocessl
                          ogi
                            c
Air
  wayshasanumberofr    eservati
                              onof f
                                   icesi
                                       neachci tywherethef l
                                                           ights
operat
     e.Eachr eser
                vat
                  ionof  f
                         icehasanumberofr   eservat
                                                  ioncountersto
handlereser
          vati
             onsandcancel  l
                           ati
                             ons.Eachcounterhasacounterassistant
whoi sresponsi
             blef
                ormaki ngr eservat
                                 ionsorcancell
                                             ati
                                               ons.Theprocedur e
fol
  l
  owedf orperf
             ormi
                ngr eservati
                           onsandcancell
                                       ati
                                         onsisgivenbel
                                                     low.
Reser
    vat
      ion
Reservat
       ionsforaf l
                 ightcommence30daysbef   or
                                          ethedateofthefl
                                                        i
                                                        ght.The
procedur
       ef ormaki ngreservati
                           onsisgivenbelow.Theproceduredescri
                                                            bed
below deals wit
              ht he provisi
                          onalreservat
                                     ions t
                                          he can be made t
                                                         hrough
t
elephoneconver sati
                  on.
Onr ecei
       ving requestforreservat
                             ionf r
                                  om aper son,thecounterassi
                                                           stant
per
  for
    mst
      hef
        oll
          owi
            ngact
                ivi
                  ti
                   es:
   Accept
         sthe dat
                e,sect
                     or,and cl
                             assoft
                                  ravelf
                                       rom t
                                           he per
                                                son and
    checksfortheavail
                    abil
                       it
                        yofas eatontherequesteddat
                                                 e.Thedetail
                                                           s
    abouttheavai
               labi
                  li
                   tyseatsandt
                             heseatplanarekepti heReser
                                               nt      vat
                                                         ion
    fi
     l
     e.
   Confi
        rmsthedet ai
                   lswiththeprospect
                                   ivepassengerandacceptsthe
    r
    emai
       ning det
              ail
                s.These det
                          ail
                            sincl
                                ude t
                                    he pr
                                        efer
                                           encessuch asa
    wi
     ndow oran ai
                sl
                 e seat
                      ,a smoki
                             ng ora non-
                                       smoki
                                           ng zone,meal
    pr
     efer
        encessuchasveget
                       ari
                         anornon-veget
                                     ari
                                       an,andspeci
                                                 alser
                                                     vice
    r
    equest
         s(SSR)
              ,suchasdi
                      etar
                         yandmedi
                                cal
                                  consi
                                      der
                                        ati
                                          ons.
   Updat
        etheseatavai
                   l
                   abi
                     l
                     it
                      yst
                        atusi
                            nther
                                eser
                                   vat
                                     ionf
                                        il
                                         eandaddst
                                                 he
    passengerdetai
                 lstot he f
                          il
                           e.The passengeris assi
                                                gned a unique
    PassengerName Request( PNR)number ,which isused to access
    t
    icketdet
           ail
             sforquer
                    iesandcancel
                               l
                               ation.
   Coll
       ectst
           hefareamount .
                                      “
                                      AIRLI
                                          NESRESERVATI
                                                     ONSYSTEM”
    Pr
      int
        sthet
            icketandgi
                     vesi
                        ttot
                           hepassenger
                                     .
    Updat
         etheDai
               l
               yCol
                  l
                  ect
                    ionf
                       il
                        ewi
                          tht
                            hef
                              areamount
                                      .
Hor
  izonAi
       rwaysal
             sopr
                ovi
                  desf
                     orover
                          bookedandwai
                                     t-l
                                       i
                                       stedt
                                           icket
                                               sfort
                                                   he
economycl
        ass
          .Over
              booki
                  ngi
                    sal
                      l
                      owedf
                          or1
                            0seat
                                sperf
                                    li
                                     ght
                                       .Forexampl
                                                e,i
                                                  f
t
hecapaci
       tyofan
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
ai
 rcr
   afti
      s340seat
             s,booki
                   ngar
                      emadef
                           or350seat
                                   s,t
                                     hati
                                        s,340seat
                                                s+1
                                                  0
over
   booked t
          icket
              s.I
                fthe numberofbooki
                                 ngsexceedst
                                           he capaci
                                                   tyand
over
   booki
       ng,awai
             t-l
               i
               stedt
                   icketi
                        sissuedt
                               othepassengerwi
                                             thhi
                                                sorher
consent
      .Anover
            bookedorwai
                      t-l
                        i
                        stedpassengeri
                                     saccommodat
                                               edont
                                                   he
f
li
 ghtdependi
          ngont
              heavai
                   l
                   abi
                     l
                     it
                      yofaseatwhent
                                  hepassengerchecksi
                                                   n.A
passengerwhocannotbeaccommodat
                             edonaf
                                  li
                                   ghti
                                      sgi
                                        venf
                                           ull
                                             ref
                                               und.
Cancel
     l
     ati
       on
Onr
  ecei
     vi
      ngacancel
              l
              ati
                onr
                  equestf
                        rom apassengert
                                      hecount
                                            eras
                                               sist
                                                  ant
per
  for
    mst
      hef
        oll
          owi
            ngt
              asks
                 :
    Ret
      ri
       evest
           hedet
               ail
                 sfr
                   om t
                      hef
                        il
                         eusi
                            ngt
                              hePNRnumber
                                        .
    Ver
      if
       iest
          hedet
              ail
                soft
                   het
                     icketandcomput
                                  est
                                    her
                                      efundamount
                                                .
    Updat
        est
          heseatavai
                   l
                   abi
                     l
                     it
                      yst
                        atusi
                            nther
                                eser
                                   vat
                                     ionsf
                                         il
                                          eandmar
                                                kst
                                                  he
    cor
      respondi
             ngdet
                 ail
                   soft
                      hef
                        il
                         e.
    Makest
         her
           efundandpr
                    int
                      sther
                          efundr
                               ecei
                                  pt.
     Fi
      l
      est
        her
          ecei
             ptal
                ongwi
                    tht
                      hesi
                         gnat
                            ureoft
                                 he
  passenger
          . Updat heDai
                est   l
                      yCol
                         l
                         ect
                           ionf
                              il
                               e.
Theamountofr ef
              undiscal
                     cul
                       atedbasedont heti
                                       cketst
                                            atusandthedate
cancel
     l
     ati
       on.I
          ftheti
               cketi
                   swai
                      t-l
                        i
                        stedorover
                                 booked,f
                                        ull
                                          amountisr
                                                  efunded.
3cl
  asseshavebeenusedi
                   nthi
                      spr
                        oject
                            :
   STATI
        ON
 DATE
 CUST
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
Modul
    esi
      ncl
        assSTATI
               ON:
 addi
     ti
      on(
        )          : Funct
                         iont
                            oaddnew st
                                     ati
                                       onr
                                         ecor
                                            d
                     i
                     nthefil
                           e.
 modi
     fi
      cat
        ion(
           )       : Funct
                         iontomodi
                                 fyexi
                                     sti
                                       ngr
                                         ecor
                                            dof
                     st
                      ati
                        on.
 del
    eti
      on(
        )          : Funct
                         iont
                            odel
                               eteexi
                                    sti
                                      ngr
                                        ecor
                                           doft
                                              he
                     st
                      ati
                        on.
li
  st(
    )              : Funct
                         iont
                            odispl
                                 ayl
                                   istofal
                                         lst
                                           ati
                                             ons.
 search(
        )          : Funct
                         iont
                            osearchi
                                   nformati
                                          onfor
                     st
                      ati
                        on.
 amount
       ()          : Funct
                         iont
                            ocal
                               cul
                                 ateandr
                                       etur
                                          ntot
                                             al
                     amount   f
                              or     t
                                     he    gi
                                            ven
                     i
                     nformati
                            onofst
                                 ati
                                   on.
 f
  oundcode(
          )        : Functi
                          ontor
                              etur
                                 nstat
                                     ioncodef
                                            oundi
                                                n
                     t
                     hef
                       il
                        eornot
                             .
Modul
    esi
      ncl
        assDATE:
 val
    i
    d()            : Funct
                         iont
                            ocheckval
                                    i
                                    dit
                                      yoft
                                         he
                     gi
                      vendat
                           e.
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
                Modul
                    esi
                      ncl
                        assCUSTOMER:
 booki
      ng(
        )         : Funct
                        iont
                           obookcour
                                   ieral
                                       ongwi
                                           th
                    consi
                        gnor   and     consi
                                           gnee
                    i
                    nfor
                       mat
                         ionand st
                                 orei
                                    nthef
                                        il
                                         e–
                    cust
                       omer.at
                             .
 sear
     ch(
       )          : Funct
                        iont
                           osear
                               chf
                                 ort
                                   hecust
                                        omer
                    i
                    nformati
                           on.
 dai
    lyl
      ist(
         )        : Functi
                         ontodi
                              spl
                                aydai
                                    l
                                    ybookingst
                                             atus
                                                .
 monthlyli
          st(
            )     : Functi
                         ontodi
                              spl
                                aymonthl
                                       ybooki
                                            ng
                    st
                     atus.
l
 ast
   cust
      code(
          )       : Functi
                         ont
                           oret
                              urnl
                                 astcust
                                       omercodei
                                               n
                    t
                    hecust
                         omerf
                             il
                              e.
                               “
                               AIRLI
                                   NESRESERVATI
                                              ONSYSTEM”
               TABLESTRUCTURE
Twof
   il
    eshavebeenusedi
                  nthi
                     spr
                       oject
                           :
          1
          .CUSTOMER.DAT(Stor
                           esall
           inf
             ormat
                 ionf
                    orcust
                         omers)
 cust
     code        : Codeno.oft
                            hecust
                                 omer
                                    .Thi
                                       sisuni
                                            que
                   fi
                    eld.
 Name           : Nameoft hecust
                                omer .
 Address        : Addressoft
                            hecustomer.
 Phone          : Phoneno.ofthecustomer
                                       .
 St
   rode          : Stati
                       oncodetowhichcour
                                       ierhast
                                             obe
                   sends.
 Came           : Consigneename.
 Cadress        : Consigneeaddress.
 Cphone         : Consigneephoneno.
 Type           : Typeofthecourier(
                                   documentornon-
                   document)
 Wei
    ght          : Weightofthecouri
                                  er.
 Amount         : Tot
                     alchargesforsendi
                                     ngthecour
                                             ier
                                               .
  DoB            : Dateofbookingcouri
                                    er.
2. STATI
       ON.
         DAT(
            Stor
               esal
                  li
                   nfor
                      mat
                        ion
                 f
                 orSt
                    ati
                      ons)
 st
   rode          : Codeno.ofthestat
                                  ion.
 Name           : Nameofthestati
                                on.
 Doc            : Char
                      gesfordocument .
 Docadd         : Addi
                      ti
                       onalchar
                              gesfordocumentabove
                   500gms.
 Ndoc           : Char
                      gesf
                         ornon-
                              document
                                     .
                               “
                               AIRLI
                                   NESRESERVATI
                                              ONSYSTEM”
 Ndocadd          : Addi
                        ti
                         onalchar
                                gesf
                                   ornon-
                                        document above
                     500gms
PROGRAM STRUCTURE
3cl
  asseshavebeenusedi
                   nthi
                      spr
                        oject
                            :
 STATI
      ON
 DATE
 CUSTOMER
Modul
    esi
      ncl
        assSTATI
               ON:
 addi
     ti
      on(
        )          : Funct
                         iont
                            oaddnew st
                                     ati
                                       onr
                                         ecor
                                            d
                     i
                     nthefil
                           e.
 modi
     fi
      cat
        ion(
           )       : Funct
                         iontomodi
                                 fyexi
                                     sti
                                       ngr
                                         ecor
                                            dof
                     st
                      ati
                        on.
 del
    eti
      on(
        )          : Funct
                         iont
                            odel
                               eteexi
                                    sti
                                      ngr
                                        ecor
                                           doft
                                              he
                     st
                      ati
                        on.
list
    ()             : Funct
                         iont
                            odispl
                                 ayl
                                   istofal
                                         lst
                                           ati
                                             ons.
 search(
        )          : Funct
                         iont
                            osearchi
                                   nformati
                                          onfor
                     st
                      ati
                        on.
 amount
       ()          : Funct
                         iont
                            ocal
                               cul
                                 ateandr
                                       etur
                                          ntot
                                             al
                     amount   f
                              or     t
                                     he    gi
                                            ven
                     i
                     nformati
                            onofst
                                 ati
                                   on.
f
 oundcode(
         )         : Functi
                          ontor
                              etur
                                 nstat
                                     ioncodef
                                            oundi
                                                n
                     t
                     hef
                       il
                        eornot
                             .
         Modul
             esi
               ncl
                 assDATE:
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
 val
    i
    d()         : Funct
                      iont
                         o checkval
                                  i
                                  dit
                                    yoft
                                       hegi
                                          ven
                    dat
                      e.
      Modul
          esi
            ncl
              assCUSTOMER:
 booki
      ng(
        )       : Funct
                      iont
                         obookcour
                                 ieral
                                     ongwi
                                         th
                    consi
                        nor   and     consi
                                          nee
                    i
                    nfor
                       mat
                         ionandst
                                orei
                                   nthef
                                       il
                                        e–
                  cust
                     omer.
                         dat
                           .
 sear
     ch(
       )        : Funct
                      iont
                         osear
                             chf
                               ort
                                 hecust
                                      omer
                  i
                  nformati
                         on.
 dai
    l
    yli
      st(
        )       : Functi
                       ontodi
                            spl
                              aydai
                                  l
                                  ybookingst
                                           atus
                                              .
 Monthl
       yli
         st(
           )    : Functi
                       ontodi
                            spl
                              aymonthl
                                     ybooki
                                          ng
                    st
                     atus.
l
ast
  cus
    tcode(
         )      :
                               “
                               AIRLI
                                   NESRESERVATI
                                              ONSYSTEM”
DFD
  “
  AIRLI
      NESRESERVATI
                 ONSYSTEM”
ENTI
   TYRELATI
          ONSHI
              PDI
                AGRAM (
                      ERD)
                         :
       The over
              alll
                 ogi
                   calst
                       ruct
                          ure ofa dat
                                    abase can be expr
                                                    ess
 gr
  aphi
     cal
       l
       ybyanE-
             R-Di
                agr
                  am.Thenr
                         elat
                            ivesi
                                mpl
                                  i
                                  cit
                                    yandpi
                                         ctor
                                            ial
                                              clar
                                                 it
                                                  yof
 t
 hisdi
     agr
       ammi
          ng t
             echni
                 que maywel
                          lSyst
                              em i
                                 nlar
                                    ge par
                                         tfort
                                             he wi
                                                 de
 spr
   eaduseoft
           heE-
              Rmodel
                   .
 component
         sofE-
             RDi
               agr
                 am:
          Rect
              angl
                 e:whi
                     chr
                       epr
                         esentent
                                it
                                 yset
                                    s
          El
            l
            ipses:whi
                    chr
                      epr
                        esentat
                              tr
                               ibut
                                  es
          Di
            amonds:whi
                     chr
                       epr
                         esentr
                              elat
                                 ionshi
                                      psset
                                          s
          Li
            nes:whi
                  chl
                    i
                    nkat
                       tr
                        ibut
                           etoent
                                it
                                 ysetandent
                                          it
                                           ysett
                                               orel
                                                  ati
                                                    onshi
                                                        p
           set
             s
          Doubl
               eel
                 l
                 ipses:whi
                         chr
                           epr
                             esentmul
                                    ti
                                     val
                                       uesat
                                           tr
                                            ibut
                                               es
          Dashedel
                  l
                  ipses:whi
                          chdenot
                                eder
                                   ivedat
                                        tr
                                         ibut
                                            es
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
Ent
  it
   y-Rel
       ati
         onshi
             pDi
               agr
                 am
                      “
                      AIRLI
                          NESRESERVATI
                                     ONSYSTEM”
                  The f
                      oll
                        owi
                          ng di
                              agr
                                am depi
                                      ctsvar
                                           iousent
                                                 it
                                                  iesi
                                                     nvol
                                                        ved i
                                                            nthe ai
                                                                  rl
                                                                   i
                                                                   ne
             r
             eser
                vat
                  ionsyst
                        em t
                           heat
                              tr
                               ibut
                                  esofent
                                        it
                                         iesand t
                                                her
                                                  elat
                                                     ionshi
                                                          psbet
                                                              ween
             ent
               it
                ies
                  :
                                      SS
                        Seat          R                                         Fi
                                                                                 rst  Cl
                                                                                       ass
                        Zon                                                     Seat
                                                                                   s
                                            St
                                             at
           Meal         e                                                       avai
                                                                                   l
                                                                                   abl
                                                                                     e
                                            us
                                                  Canc
 Seat                                             el                                    Dep.
 pref
    eren                                          Fl
                                                   ag                                   Ti
                                                                                         me
 ce                                                                                              Ar
                                                                                                  r.
                                                                                                   Time
                                           M                       1
Cl
 ass                    PASSENGE                         Boa                           Bus
                                                                                         in
                                                                                          Fe
                                                                                           l
                                                                                           igss
                                                                                             htDat
                                                                                                 e
                        R                                rds       FLI
                                                                     GHT
                                                                                     Cl
                                                                                      assSeat
                                                                                            s
 Trave                                                             1
 lDate
                                           PNRNo.
       Age                                                                           Avai
                                                                                        l
                                                                                        abl
                                                                                          e
                               Fi
                                rstName
             LastName
                                                                   Oper
                                                                      at
                                                                   esi
                                                                     n
                                                                   1
                                           Sect
                                           orI
                                             D                    SECTO
                                                                                       WeekDay2
                                                                  R
Descr
    ipt
      ion
                                                               WeekDay1
Fi
 rstCl
     assFar
          e                                                                     EconomyCl
                                                                                        assFar
                                                                                             e
                                                               Busi
                                                                  ness
                                                               Cl
                                                                assFare
                         TheEnt
                              it
                               y-Rel
                                   ati
                                     onshi
                                         pDi
                                           agr
                                             am f
                                                ort
                                                  heAi
                                                     rl
                                                      inesReser
                                                              vat
                                                                ionSyst
                                                                      em
                                                                    “
                                                                    AIRLI
                                                                        NESRESERVATI
                                                                                   ONSYSTEM”
DATAFLOW DI
          AGRAM (
                DFD)
                   :
 Ful
   ldescr
        ipt
          ionsoft
                hesyst
                     em act
                          ual
                            l
                            yconsi
                                 stofasetofdat
                                             afl
                                               owdi
                                                  agr
                                                    am.
  Speci
      fi
       cat
         ion:
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
  ewehaveusedYOURDON’
Her                 sdat
                       afl
                         owsymbol
                                s.
     Dat
        afl
          ow:Dat
               a move i
                      n a speci
                              fi
                               c di
                                  rect
                                     ion f
                                         rom and
     or
      igi
        ntoadest
               inat
                  iont
                     hef
                       orm ofadocument
                                     .
     Pr
       ocess:Peopl
                 e,pr
                    ocedur
                         esordevi
                                cet
                                  hatuseorpr
                                           oduceddat
                                                   a.
     Thephysi
            cal
              componenti
                       snoti
                           dent
                              if
                               ied.
     Sour
         ceordest
                inat
                   ion:Ext
                         ernalsour
                                 ceordest
                                        inat
                                           ionsofdat
                                                   a
      i
      nter
         actwi
             tht
               he syst
                     em.The t
                            ermssour
                                   ce and si
                                           nk ar
                                               e
      i
      nter
         changeabl
                 ewi
                   thor
                      igi
                        nanddest
                               inat
                                  ion.
     Dat
        ast
          ore:Her
                edat
                   aar
                     est
                       oreorr
                            efer
                               encedbyapr
                                        ocessi
                                             n
      t
      hesyst
           em.
                             “
                             AIRLI
                                 NESRESERVATI
                                            ONSYSTEM”
   Dat
     aFl
       owDi
          agr
            am
          Checkwai
                 ti
                  ngSt
                     atus                Quer
                                            ywai
                                               ti
                                                ngl
                                                  i
                                                  st&Dai
                                                       l
                                                       y
           Reser
               vati
                  on/
                    Cancel
                         l
                         at              Updat
                                             eavai
                                                 l
                                                 abl
                                                   e
               ionReques
          Askavai
                labi
                   l
                   it
                    yof
            seat
               ,Fare&
                                          Feedcompl
                                                  ete
                              Ai
                               rways
Cust
   omer                                                 Count
                                                            er
                              Reser
                                  vat
                                    i     Gener
                                              atePNR
           Response
                              o
          ofseat
               ,Fare&
             schedule
             Reservat
                    ion/
            Wai
              ti
               ng                         Responsewai
                                                    ti
                                                     ngl
                                                       i
                                                       st&
CONTEXTLEVELDFD
                                        “
                                        AIRLI
                                            NESRESERVATI
                                                       ONSYSTEM”
Pr
 ogr
   am codi
         ng
       “
       AIRLI
           NESRESERVATI
                      ONSYSTEM”
 PROJECTCODE–AI
              RLI
                NERESERVATI
                          ONSYSTEM
      cl
       assTI
           CKET
      {
          pr
           ivat
              e:
                   voi
                     dADD_RECORD(
                                char
                                   [10]
                                      ,char
                                          [15]
                                             ,char
                                                 [15]
                                                    ,i
                                                     nt,
                                                       int
                                                         );
          publ
             i
             c:
                   voidADDITI
                            ON(voi
                                 d);void
                   ENQUI RY(
                           voi
                             d);    char
                   *FLIGHTNO(i
                             nt)
                               ;
          pr
           otect
               ed:
                   char f  l
                           tno[
                              10],
                                 fr
                                  om[
                                    15]
                                      ,t
                                       o[1
                                         5];     i
                                                 nt
                   ecof
                      air
                        ,exefai
                              r;
      }
      ;
      //
       THI
         S CLASS CONTROLS ALLTHEFUNCTI
                                     ONS RELATED TO
PASSENGERS
      cl
       assPASSENGER
      {
         publ
            i
            c:
                                           “
                                           AIRLI
                                               NESRESERVATI
                                                          ONSYSTEM”
voi
  dADD_RECORD(  i
                nt,
                  int,
                     char[
                         26]
                           ,char
                               [36]
                                  ,i
                                   nt,
                                     char
                                        ,char
                                            );
voi
  d DELETE_TICKET(int)
                     ;i nt
DELETE_FLIGHT(i
              nt)
                ;     voi
                        d
LI
 ST(voi
      d);
i
ntLAST_TI CKETNO(void);int
SEATS(i
      nt)
        ;
                      “
                      AIRLI
                          NESRESERVATI
                                     ONSYSTEM”
                  i
                  ntFOUND(  i
                            nt);char
                  *NAME(i
                        nt);    void
                  PASS_I
                       NFO( ); voi d
                  MODIFY()
                         ;
           pr
            otect
                ed:
                  char Class,name[26],
                                     addr
                                        ess
                                          [36]
                                             ,sex; i
                                                   nt
                  sl
                   no,
                     age,t
                         icketno;
       }
       ;
       /
       /THISI
            STHEDERIVEDCLASSWHICHCONTROLSALLTHEFUNCTI
                                                    ONS
       /
       /RELATEDTORESERVATI
                         ON,CANCELLATI
                                     ON,
                                       ETC.
       cl
        assRESERVE:publi
                       cTI
                         CKET, publi
                                   cPASSENGER
       {
          publ
             i
             c:
                void RESERVATION( void)
                                      ; voi
                                          d
                CANCELLATION(void);     voi
                                          d
                DISPLAY_TI
                         CKET(void);    voi
                                          d
                DELETE_ALL(voi
                             d);
       };
      //FUNCTION TO ADD GI
                         VEN DATA I
                                  N THE TI
                                         CKET
FI
 LE(
   TICKET.DAT)
       /
       /FUNCTI
             ONTORETURNFLI
                         GHTNO.FORTHEGI
                                      VENS.
                                          NO
           whi
             l
             e(f
               il
                e.r
                  ead(
                     (char
                         *)t
                           his,
                              sizeof
                                   (TI
                                     CKET)
                                         ))
                                           “
                                           AIRLI
                                               NESRESERVATI
                                                          ONSYSTEM”
char*TICKET::FLI
               GHTNO(
                    intsno)
{
   fstr
      eam                       f
                                il
                                 e;
   fi
    le.open(
           "TI
             CKET.
                 DAT"
                    ,ios:
                        :
                        in)
                          ;intcount
   =1 ;
  whi
    l
    e(f
      il
       e.r
         ead(
            (char
                *)t
                  his,
                     sizeof
                          (TI
                            CKET)
                                ))
                               “
                               AIRLI
                                   NESRESERVATI
                                              ONSYSTEM”
    {
        i
        f (sno == count
                      )
        br
         eak;
        count
            ++;
    }
    f
    il
     e.cl
        ose();
    r
    eturnfl
          tno;
}
/
/FUNCTI
      ONTOGI
           VEDATATOADDRECORDSI
                             NTHETI
                                  CKETFI
                                       LE
voi
  dTI
    CKET: :ADDITI
                ON(voi
                     d)
{
    fstr
       eam                          f
                                    il
                                     e;
    fi
     le.open(
            "TI
              CKET.DAT",
                       ios::
                           i
                           n);i
                              f(!
                                fil
                                  e.f
                                    ail
                                      ()
     )
    return;
    fi
     le.cl
         ose(
            );
      ADD_RECORD( "
                  KL176","
                         DELHI","MUMBAI ",1500,1 700);
      ADD_RECORD( "
                  KL177","
                         MUMBAI  ",
                                  "DELHI",
                                         1500, 1 700);
      ADD_RECORD( "
                  KL156","DELHI"
                               ,"CALCUTTA" ,1700, 1900) ;
      ADD_RECORD( "
                  KL157","
                         CALCUTTA"  ,
                                    "DELHI",1700, 1900) ;
      ADD_RECORD( "
                  KL166","DELHI"
                               ,"MADRAS" ,2100, 2300) ;
      ADD_RECORD( "
                  KL167","
                         MADRAS"  ,"
                                   DELHI "
                                         ,2100, 2300);
      ADD_RECORD( "
                  KL176","
                         MUMBAI  ",
                                  "CALCUTTA"  ,1900,21 00);
      ADD_RECORD( "
                  KL177","
                         CALCUTTA"  ,
                                    "MUMBAI  ",1900,21 00);
      ADD_RECORD( "
                  KL186","MUMBAI ",
                                  "MADRAS"  ,1800, 2000) ;
      ADD_RECORD( "
                  KL187","
                         MADRAS"  ,"
                                   MUMBAI  ",1800, 2000) ;
      ADD_RECORD( "
                  KL196","CALCUTTA" ,
                                    "MADRAS"   ,
                                               1600, 1800);
      ADD_RECORD( "
                  KL197","
                         MADRAS"  ,"
                                   CALCUTTA"  ,1600, 1
                                                     800) ;
}
/
/FUNCTI
      ONTODI
           SPLAYLI
                 STOFFLI
                       GHTS
voi
  dTI
    CKET:
        :ENQUI
             RY(
               voi
                 d)
{
    whi
      l
      e(f
        il
         e.r
           ead(
              (char
                  *)t
                    his,
                       sizeof
                            (TI
                              CKET)
                                  ))
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
            cl
             rscr()
                  ;f str
                       eam
            fi
             l
             e;
            fi
             l
             e.open( "
                     TICKET.
                           DAT"
                              ,i
                               os:
                                 :
                                 in)
                                   ;got
                                      oxy(
                                         30,
                                           3);
            cout<<"LISTOFTHEFLIGHTS";
            gotoxy(18,5)
                       ;
EXE.
   FAI
     R";    cout<<"Sno.FLIGHTNO.FROM        TO       ECO.
                                                        FAI
                                                          R
            i
            ntr
              ow=7,
                  sno=1
                      ;
           whi
             l
             e(f
               il
                e.r
                  ead(
                     (char
                         *)t
                           his,
                              sizeof
                                   (TI
                                     CKET)
                                         ))
                                       “
                                       AIRLI
                                           NESRESERVATI
                                                      ONSYSTEM”
     {
         gotoxy(
               1 8,
                  row);
         cout<<sno;
         gotoxy(
               23, r
                   ow) ;
         cout<<fl
                tno;
         gotoxy(
               34, r
                   ow);
          cout<<from;
         gotoxy(
               44, r
                   ow);
         cout<<to;
         gotoxy(
               53, r
                   ow);
         cout<<ecofair
                     ;
         gotoxy(
               63, r
                   ow);
         cout<<exefair
                     ;
         row++;
         sno++;
     }
     f
     il
      e.cl
         ose(
            );
}
/
/FUNCTI
      ONTORESERVETI
                  CKETFORTHEPASSENGERS
voi
  dRESERVE:  :RESERVATI   ON(void)
{
    clrscr(
          );
    ENQUI  RY();
    chart 1[15],pclass,pname[ 26],
                                 paddress[
                                         36]
                                           ,psex
                                               ,pf
                                                 lt
                                                  no[
                                                    10]
                                                      ;
      i
      nt          t2,vali
                        d,page,t
                               no,sno;
    PASSENGERp;
    tno=p.  LAST_TI CKETNO(  )+1 ;
    do
    {
       vali
          d     =     1 ;
       gotoxy(3, 23);
       clr
         eol();
       cout<<" PRESS<ENTER>TOEXI     T";
       gotoxy(3, 20);
       clr
         eol();
       cout<<" ENTERTHESNO.OFTHEFLI      GHT:";
       gets(t1)
              ;
                                  “
                                  AIRLI
                                      NESRESERVATI
                                                 ONSYSTEM”
t
2=at oi
      (t1)
         ;sno=
t
2;
i
f(
 strl
    en(
      t1)==0)r
             etur
                n;
i
f(
 sno<1| |sno>12)
{
  val
    id=0;
                     “
                     AIRLI
                         NESRESERVATI
                                    ONSYSTEM”
                  gotoxy(3,
                          23)
                            ;
                 cl
                  reol(
                      );
                 cout<<"ENTERCORRECTLY"
                                      ;
                 getch()
                       ;
             }
         }       whi
                   l
                   e(!
                     val
                       i
                       d); i
                           nt
         i
         =1;
         f
         str
           eam                            f
                                          il
                                           e;
         f
         il
          e.open(
                "TI
                  CKET.
                      DAT"
                         ,i
                          os:
                            :
                            in)
                              ;
         while( f
                il
                 e.read((
                        char*)this,si
                                    zeof(
                                        TICKET)))
         {
            i
            f(sno == i    )
               break;
            i
            ++;
         }
         fi
          l
          e.cl ose();st
                      rcpy(pfl
                             tno,flt
                                   no);
          i
          f(p. SEATS( sno)>=250)
         {
        gotoxy( 5,21);
        cout<<" \7Sorry!SEATSARENOTAVAI     LABLE";
        getch( );
        ret
          urn;
         }
         gotoxy( 3,23);
         cl
          reol ();
         cout<<"  E=ECONOMI  C, X=EXECUTI VEorPRESS<ENTER>TO
EXI
  T";    do
         {
           gotoxy(
                 3,21
                    );
           cl
            reol(
                );
           cout<<"BYWHICHCLASSYOUWOULDLI
                                       KETOTRAVEL:
"
;
             pclass=getche(
                          );
             pclass =     toupper
                                (pcl
                                   ass)
                                      ;
             i
             f(pclass==13)
                                       “
                                       AIRLI
                                           NESRESERVATI
                                                      ONSYSTEM”
     r
     etur
        n;
}     whi
        le(
          pcl
            ass!
               ='E'&&pcl
                       ass!
                          ='X'
                             );
cl
 rscr()
      ;
gotoxy(72,
         3);
cout<<"<0>-EXI
             T";
gotoxy(34,
         2);
                          “
                          AIRLI
                              NESRESERVATI
                                         ONSYSTEM”
cout<<"RESERVATION";
gotoxy(
      5,5);
cout<<"NAME      :
                 ";
gotoxy(
      5,6);
cout<<"ADDRESS : ";
gotoxy(
      5,7); cout
               <<"SEX
M/F              : " ;
gotoxy(
      5,8);
cout<<"AGE       :
                 " ;
do
{
  valid     =     1
                  ;
  got oxy(5,25) ;
  cl
   reol ()
         ;
   cout <<" ENTERTHENAMEOFTHEPASSENGER"   ;
  got oxy(15,5);
  cl
   reol ()
         ; get   s(
                  pname) ;
  i
  f(pname[  0]==' 0')
     return;
  i
  f(strl
       en( pname)<1|  |st
                        rl
                         en(
                           pname)>25)
  {
     vali
        d     =     0;
     gotoxy( 5,25);
     clr
       eol (
           );
     cout<<" \7ENTERCORRECTLY{ RANGE:1TO25}"
                                           ;
     getch( )
            ;
  }
}     whi l
          e(!vali
                d);
do
{
  vali
     d     =    1
                ;
  gotoxy(
        5, 25);
   clr
     eol(
        );
  cout<<"ENTERTHEADDRESSOFTHEPASSENGER"
                                      ;
  gotoxy(
        1 5,6)
             ;
  cl
   reol(
       );     get
                s(paddr
                      ess
                        );
  i
  f(paddress[0]=='0')
                           “
                           AIRLI
                               NESRESERVATI
                                          ONSYSTEM”
  ret
    urn;
i
f(
 strl
    en(paddress)<1|
                  |st
                    rl
                     en(
                       paddr
                           ess
                             )>35)
{
  vali
     d    =    0;
  gotoxy(5,
          25);
  clr
    eol(
       );
                        “
                        AIRLI
                            NESRESERVATI
                                       ONSYSTEM”
        cout<<"\7ENTERCORRECTLY{
                               RANGE:1TO35}
                                          ";
        getch()
              ;
    }
}       whi
          l
          e(!
            val
              i
              d);
do
{
  gotoxy(5,25);
   clr
     eol();
  cout<<"ENTERTHESEXOFTHEPASSENGER"
                                  ;
  gotoxy(15,7);
  cl
   reol()
        ;
  psex=get  che()
                ;
  psex = t    oupper(psex)
                         ;
  i
  f(psex==' 0')
    return;
}     whil
         e(psex!='M'&&psex!='
                            F')
                              ;
do
{
  vali
     d      =     1;
  gotoxy( 5,25) ;
  cl
   reol ()
         ;
  cout<<" ENTERTHEAGEOFTHEPASSENGER"
                                   ;
  gotoxy( 15,8) ;
  cl
   reol ()
         ;
  gets(t1);
  t2=at  oi(t
            1 );page
   =t 2;
  i
  f(t
    1[ 0]=='  0')
    ret urn;
  i
  f(page<1|    |page>1 00)
  {
    val i
        d      =    0;
    got oxy( 5,25);
    clreol (
           );
    cout <<" \7ENTERCORRECTLY"
                             ;
    get ch();
  }
                             “
                             AIRLI
                                 NESRESERVATI
                                            ONSYSTEM”
          }    whi
                 l
                 e(!
                   val
                     i
                     d);
          cl
           rscr()
                ;
          gotoxy(11
                  ,4)
                    ;
cout
   <<"
     ***
       ***
         ***
           ***
             ***
               ***
                 ***
                   ***
                     ***
                       ***
                         ***
                           ***
                             ***
                               ***
                                 ***
                                   ***
                                     ***
                                       *";got
                                            oxy(
                                               11,
                                                 21)
                                                   ;
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
cout
   <<"
     ***
       ***
         *******
               *************
                           ***********
                                     *****
                                         ** ***
                                              *****
                                                  ";gotoxy(
                                                          33,
                                                            6);
           cout<<"TICKETNO.:"   <<tno;
            gotoxy(17,9);
           cout<<from<<" TO "     <<to;
           gotoxy(45,9);
           cout<<"FLIGHTNO.:"   <<pflt
                                     no;got oxy(20,
                                                  11);
           cout<<"PASSENGER NAME : "         <<pname;
           gotoxy(20,13);
           cout<<"ADDRESS          :      "<<paddress;
           gotoxy(20,15);
           cout<<"SEX : "    <<psex;
           gotoxy(20,17);cout<<" AGE
            :"<<page;got  oxy(45,19);
           i
           f(pcl
               ass=='  E')
          cout<<"TOTALFAI  R:" <<ecofair
                                       ;else
          cout<<"TOTALFAI  R:" <<exefair
                                       ;
p.
 ADD_RECORD(
           tno,
              sno,
                 pname,
                      paddr
                          ess
                            ,page,
                                 psex,
                                     pcl
                                       ass)
                                          ;get
                                             ch(
                                               );
      }
       /
       /FUNCTI
             ONTOADDTHEGI
                        VENDATAI
                               NTHEPASSENGER'
                                            SFI
                                              LE
       voi
         d PASSENGER :   :ADD_RECORD (    i
                                          nttno,i
                                                ntsno, charpname[
                                                                26]
                                                                  ,char
paddr
    ess[36]
          ,i
           ntpage, charpsex ,charpcl ass)
       {
            fstream                           f
                                              il
                                               e;
            fi
             le.open("PASS. DAT" ,i
                                  os::
                                     app);ti
                                           cket
                                              no
            =t no;
            slno=sno;st  r
                         cpy( name, pname);
            strcpy(address,paddr ess);age=
            page;
            sex=psex  ;Cl ass=
            pclass;
            fi
             le.wri
                  te((
                     char *)t
                            his,si
                                 zeof(PASSENGER) );f
                                                   il
                                                    e.close(
                                                           );
       }
       voi
         dPASSENGER:    :MODI  FY()
         {
                                           “
                                           AIRLI
                                               NESRESERVATI
                                                          ONSYSTEM”
i
ntt
  cno;
         “
         AIRLI
             NESRESERVATI
                        ONSYSTEM”
chart
    1[15]
        ,pclass
              ,pname[26]
                       ,paddr
                            ess
                              [36]
                                 ,psex
                                     ,pf
                                       lt
                                        no[
                                          10]
                                            ;
  i
  ntt2,
      val
        id,page,t
                no,
                  sno;
PASS_I NFO(  );
cout <<"\nENTERTHETI     CKETNUMBEROFTHEPASSENGER";
cin>>tcno;
fstr
   eam f il
          e;
fi
 le.open( "PASS. DAT" ,ios::
                           i
                           n|ios::
                                 out);i
                                      ntm=0;
i
nt l   ; f   i
             le.r
                ead( (char *
                           )this,
                                sizeof(
                                      PASSENGER)
                                               );
while(!f
       il
        e.eof ()
               )
   {     m++;
         if(t
            cno==t icket no)
        {
         l=(m- 1)*s
                  izeof (PASSENGER)   ;cout<<l
                                             ;
         get ch();
         clrscr()
                ;
         got oxy(72,3);
         cout <<"<0>-  EXIT";
         got oxy(34,2);cout <<" RESERVATI ON";
         got oxy(5,5);
         cout <<"NAME          :";
         got oxy(5,6);
         cout <<"ADDRESS :"      ;
         got oxy(5,7); cout <<" SEX
         M/ F                  : " ;
         got oxy(5,8);
         cout <<"AGE           :";
    gotoxy(5,25);
    cl
     reol(
         );
    cout<<"ENTERTHENAMEOFTHEPASSENGER";
    gotoxy(15,5)
               ;
    cl
     reol(
         );
    gets(
        pname)  ;
     gotoxy(5,25);
    cl
     reol(
         );
    cout<<"ENTERTHEADDRESSOFTHEPASSENGER"
                                        ;
    gotoxy(15,6)
               ;
                              “
                              AIRLI
                                  NESRESERVATI
                                             ONSYSTEM”
cl
 reol(
     );
gets(
    paddress)
            ;
gotoxy(
      5,25)
          ;
                “
                AIRLI
                    NESRESERVATI
                               ONSYSTEM”
             cl
              reol(
                  );
             cout<<"ENTERTHESEXOFTHEPASSENGER"
                                             ;
             gotoxy(
                   1 5,
                      7);
             cl
              reol(
                  );
             psex=get che()
                          ;
             psex=t oupper(
                          psex)
                              ;
     }
}
    voi
      dPASSENGER:  :PASS_I
                         NFO( )
      {
        fstr
           eam                             f
                                           il
                                            e;
        fi
         le.open(
                "PASS.DAT",
                          ios
                            ::
                             in);
                                           “
                                           AIRLI
                                               NESRESERVATI
                                                          ONSYSTEM”
           cout<<"            PASSENGERS
I
NFORMATION\n";
           cout<<"
*
***
  ***
    ***
      ****
         *****
             *****
                 **\n";
           gotoxy(
                 2,4);
                          “
                          AIRLI
                              NESRESERVATI
                                         ONSYSTEM”
cout<<"T.NO.";
gotoxy(
      1 1
        ,4);
cout<<"S.NO.";
                 gotoxy(
                       25, 4)
                            ;
                 cout<<"NAME" ;
                 gotoxy(
                       48,4);
                 cout<<"ADDRESS" ;
                 gotoxy(
                       66, 4)
                            ;
                 cout<<"AGE" ;
                 gotoxy(
                       70,4);
                 cout<<"SEX";
                 gotoxy(
                       74,4);
                 cout<<"CLASS" ;
                 gotoxy(
                       1 ,
                         5);
  cout<<"
        ***
          ********
                 * ***
                     * *
                       *** **********
                                    ******
                                         *****
                                             ******
                                                  ***
                                                    * **
                                                       ** *
                                                          *
  ***
    *****
        ***
          ********
                 * **"
                     ;
               i
               nttno,sno, page;
               char pname[    26] ,
                                  paddress[36]
                                             ,psex,
                                                  pclass,pfl
                                                           tno[
                                                              10]
                                                                ;int i
                                                                     =6;
               while(f
                     il
                      e.read( (char*)t
                                     his
                                       ,si
                                         zeof(PASSENGER)  ))
               {
            tno=ticketno;
            sno=sl no;
               st
                rcpy(pname,  name)  ;
               st
                rcpy(paddr  ess,address);page
               =age;
               psex= sex  ;pcl  ass
               =Cl ass;got oxy(2,i)
                                  ;
               cout<<tno;
               gotoxy(11,i
                         );
               cout<<sno;
               gotoxy(20,i);
               cout<<pname;
               gotoxy(45,i);
               cout<<paddr  ess;
               gotoxy(67,i);
               cout<<page;
               gotoxy(71,i)
                          ;
               cout<<psex  ;
                                             “
                                             AIRLI
                                                 NESRESERVATI
                                                            ONSYSTEM”
    gotoxy(77,
             i)
              ;
    cout<<pclass;i
                 ++;
    }
    fi
     l
     e.close()
             ;
}
                       “
                       AIRLI
                           NESRESERVATI
                                      ONSYSTEM”
      //
       THI
         S FUNCTI
                ON RETURNS THE LAST TI
                                     CKET NO.I
                                             N THE
PASSENGERFI
          LE
       i
       ntPASSENGER:  :
                     LAST_TI
                           CKETNO(  void)
       {
           fstr
              eam                         fi
                                           l
                                           e;
           fi
            le.open("
                    PASS.DAT",i
                              os:
                                :in);intcount
           =0;
           whi l
               e(f
                 il
                  e.r
                    ead((
                        char*)
                             thi
                               s,sizeof(PASSENGER)
                                                 ))     count   =
              t
              icket
                  no;
           fi
            le.cl
                ose()
                    ;
           returncount;
       }
      //
       THI
         S FUNCTI
                ON RETURNS TOTALNO.OF SEATS I
                                            N THE
PASSENGERFI
          LE
       i
       ntPASSENGER:    :SEATS(intsno)
       {
           fstream                           f
                                             il
                                              e;
           fi
            le.open(  "PASS.DAT" ,
                                 ios
                                   ::
                                    in);intcount
           =0;
           whi le( f
                   il
                    e.r
                      ead((char*)t
                                 his,
                                    sizeof(
                                          PASSENGER)
                                                   ))
           {
              i
              f( sno == sl    no)
              count  ++;
           }
           fi
            le.cl ose();
           retur ncount ;
       }
       /
       /THI
          SFUNCTI
                ONRETURNS0I
                          FTHETI
                               CKETNO.I
                                      SNOTFOUND
I
NTHE
       /
       /PASSENGERFI
                  LE
       i
       ntPASSENGER: :FOUND(i
                           ntt
                             no)
       {
           fstr
              eam                         f
                                          il
                                           e;
             f
             il
              e.open(
                    "PASS.
                         DAT",
                             ios:
                                :
                                in)
                                  ;
                                          “
                                          AIRLI
                                              NESRESERVATI
                                                         ONSYSTEM”
i
ntf
  ound=0;
whi
  le(fi
      l
      e.r
        ead((
            char*
                )thi
                   s,si
                      zeof
                         (PASSENGER)
                                   ))
{
  i
  f(t
    no==t i
          cket
             no)
  {
    found = 1 ;
    break;
                           “
                           AIRLI
                               NESRESERVATI
                                          ONSYSTEM”
            }
          }
          f
          il
           e.cl
              ose()
                  ;
          r
          eturnfound;
     }
      //
       THI
         SFUNCTI
               ON RETURNSPASSENGER'
                                  SNAMEFORTHEGI
                                              VEN
TI
 CKETNO.
     char*
         PASSENGER:   :NAME(i
                            nttno)
     {
          fstr
             eam                        fi
                                         l
                                         e;
            f
            il
             e.open("
                    PASS.DAT",i
                              os::
                                 in)
                                   ;
          whi l
              e(f
                il
                 e.r
                   ead((
                       char
                          *)t
                            his,si
                                 zeof(
                                     PASSENGER)
                                              ))
          {
             i
             f(t
               no==t i
                     cket
                        no)break;
          }
          fi
           le.cl
               ose()
                   ;
          returnname;
     }
     /
     /THI
        SFUNCTI
              ONDI
                 SPLAYSTHELI
                           STOFTHEPASSENGERS
     voi
       dPASSENGER::LI
                    ST(
                      voi
                        d)
     {
           WANT";
                                     “
                                     AIRLI
                                         NESRESERVATI
                                                    ONSYSTEM”
c    cket
        ;t icket
               .ENQUIRY(
                       );
l    do
r     {
s      val
         id    =    1
                    ;
c      gotoxy(3,
               23);
r      cl
        reol()
             ;
()     cout<<"PRESS<ENTER>TOEXI
                              T";
;      gotoxy(3,
               20);
c      cl
        reol()
             ;
h      cout<<"ENTERSNO.OFTHEFLI
                              GHTWHOSEDETAI
                                          LSYOU
a
r     gets(t1
            );
t     t
      2=at  oi(
              t1)
                ;sno=
1     t
      2;
[     i
      f(str
          len(t
              1)==0)r
                    etur
                       n;
1     i
      f(sno<1| |sno>12)
0]
;
i
n
t
t
2,
s
n
o,
v
a
l
i
d;
T
I
C
K
E
T
t
i
                             “
                             AIRLI
                                 NESRESERVATI
                                            ONSYSTEM”
              {
               val
                 id    =     0;
               gotoxy(3,23);
               cl
                reol()
                     ;
               cout<<"\7ENTERCORRECTLY"
                                      ;
               getch()
                     ;
              }
            }   while(
                     !vali
                         d);
            cl
             rscr()
                  ;
            i
            ntrow=8,  found=0,f
                              lag=0;charch;
            gotoxy(3,
                    4) ;
            cout<<"FLIGHTNO. --
                              -->"<<t
                                    icket.
                                         FLI
                                           GHTNO(
                                                sno)
                                                   ;
            gotoxy(28,2);
            cout<<"**LISTOFPASSENGERS*  *
                                        ";
            gotoxy(5,
                    6) ; cout
                            <<"TI
                                CKET
            NO.
            NAME
CLASS"
     ;
            got
              oxy(
                 4,7)
                    ;
cout
   <<"
     ***
       ***
         ****
            **** **** *
                      ************
                                 * *
                                   ** ****
                                         *****
                                             ***
                                               ***
                                                 ***
                                                   **"
                                                     ;fst
                                                        ream f
                                                             il
                                                              e;
           f
           il
            e.open(  "PASS. DAT" ,
                                 ios:
                                    :in);            fi
                                                      le.
                                                        seekg(
                                                             0,ios:
                                                                  :
                                                                  beg)
                                                                     ;
           whil
              e( fi
                  le.read((char*)t
                                 his,sizeof(
                                           PASSENGER)))
           {
             i
             f(sno==sl   no)
              {
                fl
                 ag = 0;del   ay(20);
                found        =     1;
                got oxy(5,row) ;
                cout <<ticketno;
                got oxy(17,row);
                cout <<name;
                got oxy(49,row) ;
                i
                f(Cl ass==' X')
              cout  <<"EXECUTI  VE";
                else
              cout  <<"ECONOMI   C";
                i
                f(row==21    )
                                          “
                                          AIRLI
                                              NESRESERVATI
                                                         ONSYSTEM”
 {
fl
 ag=1 ;
row     =    7;
gotoxy(
      5,23);
cout<<"PRESSANYKEYTOCONTI
                        NUEORPRESS<ESC>"
                                       ;
                     “
                     AIRLI
                         NESRESERVATI
                                    ONSYSTEM”
              ch = get    ch()
                             ;
              i
              f(ch==27)
                 break;
              clr
                scr ()
                     ;
              got oxy(32,3);
              cout <<"LISTOFPASSENGERS"
                                      ;
              got oxy(2,
                       5) ;
              cout <<"TICKETNO.   NAME                  CLASS"
                                                             ;
               }
               else
              row++;
             }
           }
           i
           f(!
             found)
           {
          gotoxy(5,10)
                     ; cout
                          <<"
                            \7RECORDS
          NOTFOUND"   ;
           }
           i
           f(!
             fl
              ag)
           {
          gotoxy(5,23);
          cout<<"PRESSANYKEYTOCONTI NUE.         "
                                                 ;
          getch();
           }
           fi
            l
            e.close();
      }
      /
      /THI
         S FUNCTI
                ON DELETES PASSENGER RECORDS FOR THE GI
                                                      VEN
TI
 CKETNO.
      voi
        dPASSENGER:   :DELETE_TICKET( i
                                      nttno)
      {
          fstr
             eam                           fi
                                            l
                                            e;
          fi
           le.open("PASS. DAT",
                              ios:
                                 :i
                                  n); f str
                                          eam
          temp; t  emp. open("t
                              emp. dat
                                     ",i
                                       os::
                                          out);
          fi
           le.seekg(0,i
                      os::
                         beg);
          while(!
                fil
                  e.eof()
                        )
          {
             f
             ile.
                read((char*)
                           thi
                             s,si
                                zeof(
                                    PASSENGER)  )
                                                ;if
                                                  (fi
                                                    l
                                                    e.eof
                                                        ())
                                         “
                                         AIRLI
                                             NESRESERVATI
                                                        ONSYSTEM”
   br eak;
  i
  f(tno                !
                       =               t
                                       icket
                                           no)
   temp. wri
           te(
             (char
                 *)t
                   his
                     ,si
                       zeof
                          (PASSENGER)
                                    );
}
f
il
 e.cl
    ose()
        ;
t
emp.close()
          ;
                          “
                          AIRLI
                              NESRESERVATI
                                         ONSYSTEM”
           f
           il
            e.open("PASS. DAT",ios::
                                   out)
                                      ;
           t
           emp. open("temp.dat",ios:
                                   :i
                                    n);
           t
           emp. seekg(0,i
                        os::
                           beg) ;
           whil
              e(!t
                 emp. eof())
           {
             t
             emp. read((char*)
                             this,si
                                   zeof(PASSENGER) )
                                                   ;
             i
             f(t
               emp. eof())
               break;fil
                       e.wri
                           te((char*)t
                                     his,si
                                          zeof
                                             (PASSENGER)
                                                       );
           }
           f
           il
            e.cl
               ose();
           t
           emp. cl
                 ose();
      }
      /
      /THI
         S FUNCTI
                ON DELETES PASSENGER RECORDS FOR THE GI
                                                      VEN
FLI
  GHTNO.
      i
      ntPASSENGER:     :DELETE_FLI   GHT( intsno)
      {
          fstr
             eam                                 fi
                                                  l
                                                  e;
          fil
            e.open(   "PASS. DAT" ,i
                                   os ::
                                       in); f str
                                                eam
          temp; t     emp.  open("temp.  dat"
                                            ,i
                                             os::
                                                out);
          fil
            e.seekg(   0,i
                         os: :
                             beg);
          int f    ound       =     0;
          whi l
              e( !fi
                   le.eof ())
          {
             f
             ile.read(  (char*)thi
                                 s,sizeof (
                                          PASSENGER)  )
                                                      ;if
                                                        (fi
                                                          l
                                                          e.eof(
                                                               ))
                br eak; i    f
                             (sno
             !=sl no)
                temp.   writ
                           e((char* )t
                                     his,si
                                          zeof(PASSENGER) );el
                                                             se
                found=1    ;
          }
          fil
            e.close(  );
            t
            emp.  cl ose( );
          fil
            e.open(   "PASS. DAT" ,i
                                   os ::
                                       out )
                                           ;
          temp. open(   "temp. dat",i
                                    os::in);
          temp. seekg(   0,ios::
                               beg) ;
          whi l
              e( !t
                  emp.   eof (
                             ))
          {
             t
             emp.   read( (char *)
                                 this,si
                                       zeof (
                                            PASSENGER)  )
                                                        ;
                                             “
                                             AIRLI
                                                 NESRESERVATI
                                                            ONSYSTEM”
    i
    f(
     temp.eof
            ())
      br
       eak;fi
            l
            e.wri
                te(
                  (char
                      *)t
                        his,
                           sizeof
                                (PASSENGER)
                                          );
}
                             “
                             AIRLI
                                 NESRESERVATI
                                            ONSYSTEM”
           f
           il
            e.cl
               ose()
                   ;
           t
           emp. cl
                 ose()
                     ;
           r
           eturnfound;
      }
      /
      /THI
         SFUNCTI
               ONCANCELSPASSENGER'
                                 STI
                                   CKET
      voi
        dRESERVE:   :
                    CANCELLATI    ON(voi
                                       d)
      {
           cl
            rscr ();
          char t   1[10],ch; i  nt
          t2,
            tno, valid;do
          {
            valid      =      1;
            got oxy( 3,23) ;
            clr
              eol  ()
                    ;
            cout  <<" PRESS<ENTER>TOSEELI   STOR0TOEXIT";
            got oxy( 3,20) ;
            clr
              eol  ()
                    ;
            cout  <<" ENTERTI   CKETNO.OFPASSENGERTOCANCELTHE
TI
 CKET"
     ;
            get s(t1);
            t2=at   oi(t
                       1);t no=t 2;
            if
             (t1[ 0]=='  0')
               ret urn;i f(str
                             len(t
                                 1)==
            0)
            {
               val id = 0;
                 LIST( )
                       ;
               clrscr ()
                       ;
            }
            if
             (!
              FOUND(     tno)&&val id)
            {
               val id     =     0;
               got oxy( 3,23) ;
               clreol ()
                       ;
               cout  <<"\7RECORDNOTFOUND"    ;
               get ch( )
                       ;
            }
                                       “
                                       AIRLI
                                           NESRESERVATI
                                                      ONSYSTEM”
}   whi
      l
      e(!
        val
          i
          d);
/
/PAGE1
     1
cl
 rscr
    ();
                “
                AIRLI
                    NESRESERVATI
                               ONSYSTEM”
            fstr
               eam                           f
                                             il
                                              e;
            fi
             le.open( "
                      PASS. DAT",i
                                 os :
                                    :
                                    in);
            while( f
                   il
                    e.r
                      ead((char*
                               )thi
                                  s,sizeof(
                                          PASSENGER)
                                                   ))i
                                                     f(
                                                      ti
                                                       cket
                                                          no==t
                                                              no)
                  break;
            fi
             le.close();i
                        nti=
            1;
            fi
             le.open( "
                      TICKET.DAT" ,
                                  ios:
                                     :in)
                                        ;
            while( f
                   il
                    e.r
                      ead((char*
                               )thi
                                  s ,
                                    sizeof(
                                          TICKET)
                                                ))
            {
               i
               f(slno == i    )
                  break;
               i
               ++;
            }
            fi
             le.close();
            PASSENGERp;
            gotoxy( 11,
                      4);
cout
   <<"
     ***
       ***
         ***
           ***
             ***
               ***
                 ***
                   ***
                     ***
                       ***
                         ***
                           ***
                             ***
                               ***
                                 ***
                                   ***
                                     ***
                                       *";got
                                            oxy(
                                               11,
                                                 21)
                                                   ;
cout
   <<"
     ***
       ***
         *******
               ***********
                         * *
                           ***********
                                     *****
                                         *****
                                             ***
                                               **";got
                                                     oxy(
                                                        33,
                                                          6);
           cout<<"TICKETNO.:"   <<tno;
           gotoxy(17,
                    9) ; cout <<from<<"
            TO" <<to;
           gotoxy(45,9);
           cout<<"FLIGHT NO. : "       <<fl
                                          tno;
           gotoxy(20,11);
           cout<<"PASSENGERNAME:"      <<p.NAME( t
                                                 no);
           gotoxy(20,13);cout <<"ADDRESS :
           "<<address;got oxy(20,15);
           cout<<"SEX : "    <<sex;
           gotoxy(20,17);
           cout<<"AGE : "    <<age;
           gotoxy(45,19);i
                         f(Class==
           '
           E')
          cout<<"TOTALFAI  R:" <<ecofair
                                       ;else
          cout<<"TOTALFAI  R:" <<exefair
                                       ;do
           {
             gotoxy(10,23);
             clr
               eol();
                                         “
                                         AIRLI
                                             NESRESERVATI
                                                        ONSYSTEM”
 cout
    <<"CANCELTHI
               STI
                 CKET(
                     Y/N):"
                          ;
ch=getch(
        );
                     “
                     AIRLI
                         NESRESERVATI
                                    ONSYSTEM”
              ch=t
                 oupper
                      (ch)
                         ;
}   whi
      l
      e(ch!
          ='Y'&&ch!='
                    N')
                      ;
                  i
                  f(ch == '  N')
                 r
                 eturn;
                  DELETE_TICKET(
                               tno)
                                  ;
                  gotoxy(1
                         0,25)
                             ; cout <<"
                                      \7TI
                                         CKET
                  CANCELLED" ;
                  getch()
                        ;
             }
             /
             /THI
                SFUNCTI
                      ONDI
                         SPLAYSTHEPASSENGER'
                                           SINFORMATI
                                                    ON
             voi
               dRESERVE:
                       :DI
                         SPLAY_TI
                                CKET(
                                    voi
                                      d)
             {
/
/    PAGE1
         2
                  cl
                   rscr ();
                 char t   1[10],ch; i nt
                 t2,
                   tno, valid;do
                 {
                   valid      =     1;
                   got oxy( 3,23);
                   clr
                     eol  ()
                           ;
                   cout  <<" PRESS<ENTER>TOSEELI  STOR0TOEXIT"
                                                             ;
                   got oxy( 3,20);
                   clr
                     eol  ()
                           ;
                   cout  <<" ENTERTHETI  CKETNO.OFTHEPASSENGER:"
                                                               ;
                   get s(t1);
                   t2=at   oi(t
                              1);tno=t 2;
                   if
                    (t1[ 0]==' 0')
                      ret urn;if(str
                                   len(t
                                       1)==
                   0)
                   {
                      val id = 0;
                        LIST( )
                              ;
                      clrscr ()
                              ;
                   }
                                             “
                                             AIRLI
                                                 NESRESERVATI
                                                            ONSYSTEM”
i
f(
 FOUND(  t
         no)&&vali
                 d)
{
  val
    id    =   0;
  gotoxy(
        3,23)
            ;
  cl
   reol(
       );
  cout<<"\
         7RECORDNOTFOUND"
                        ;
                      “
                      AIRLI
                          NESRESERVATI
                                     ONSYSTEM”
                    get
                      ch(
                        );
                }
            }       whi
                      l
                      e(!
                        val
                          i
                          d);
            cl
             rscr ();fstream
            fi
             l
             e;
            fi
             l
             e.open(  "
                      PASS. DAT",i
                                 os :
                                    :
                                    in);
            while( f
                   il
                    e.r
                      ead( (
                           char*
                               )thi
                                  s ,
                                    sizeof(
                                          PASSENGER)
                                                   ))
              if(ti
                  cketno==t no)break;
            fi
             l
             e.cl ose();i
                        nti=
             1;
            fi
             l
             e.open(  "
                      TICKET.DAT" ,
                                  ios:
                                     :in)
                                        ;
            while( f
                   il
                    e.r
                      ead( (
                           char*
                               )thi
                                  s ,
                                    sizeof(
                                          TICKET)
                                                ))
            {
              if(slno == i    )
                  break;
              i++;
            }
            fi
             l
             e.cl ose();
            PASSENGERp;
            gotoxy( 11,
                      4);
cout
   <<"
     ***
       ***
         ***
           ***
             ***
               ***
                 ***
                   ***
                     ***
                       ***
                         ***
                           ***
                             ***
                               ***
                                 ***
                                   ***
                                     ***
                                       *";got
                                            oxy(
                                               11,
                                                 21)
                                                   ;
cout
   <<"
     ***
       ***
         ********
                ********
                       *******
                             * *
                               ******
                                    *****
                                        *****
                                            ***
                                              **";got
                                                    oxy(
                                                       33,
                                                         6);
           cout<<"TICKETNO.:"  <<tno;
           gotoxy(17,
                    9);cout <<from<<"
           TO" <<to;gotoxy(45,9);
           cout<<"FLIGHT NO. : "      <<fl
                                         tno;
            gotoxy(20,11);
           cout<<"PASSENGERNAME:"     <<p.NAME( t
                                                no);
           gotoxy(20,13);cout<<" ADDRESS :
           "<<address;
                /
                /       PAGE1
                            3
            gotoxy(
                  20,15)
                       ;
            cout<<"SEX : "
                         <<sex;
                                          “
                                          AIRLI
                                              NESRESERVATI
                                                         ONSYSTEM”
gotoxy(
      20,17)
           ;
cout<<"AGE : " <<age;
gotoxy(
      45,1
         9);if
             (Cl
               ass==
'
E')
                        “
                        AIRLI
                            NESRESERVATI
                                       ONSYSTEM”
          cout
             <<" TOTALFAI
                        R:"<<ecof
                                air
                                  ;else
          cout
             <<" TOTAL FAIR : "  <<exefai
                                        r;
           gotoxy(1
                  0,25)
                      ;
           cout<<"PRESSANYKEYTOCONTI  NUE.    "
                                              ;
           getch()
                 ;
      }
      /
      /THI
         S FUNCTI
                ON GI
                    VES FLI
                          GHT NO.TO DELETE ALL PASSENGER
RECORDS
      voi
        dRESERVE:   :DELETE_ALL(
                               voi
                                 d)
      {
          clrscr()
                 ;
          ENQUI  RY( );
          chart 1[5] ;
          intt2,vali
                   d, sno;do
          {
             vali
                d      =    1;
             gotox y(3,23);
             clr
               eol() ;
             cout<<" PRESS<ENTER>TOEXI
                                     T";
             gotox y(3,20);
             cout<<" ENTERSNO.OFTHEFLI
                                     GHTTODELETERELATED
RECORDS";
            get s(t1);
            t
            2=at    oi
                     (t1)
                        ;sno=
             t2;
            i
            f(strlen(t1)==0)r etur
                                 n;
            i
            f(sno<1|   |sno>1  2)
            {
               valid     =    0;
               got oxy(3,23);
               clreol();
               cout <<"\7ENTERCORRECTLY"
                                       ;
               get ch();
            }
          }      whi l
                     e(!
                       vali
                          d);
          got
            oxy(
               3,23)
                   ;
                                      “
                                      AIRLI
                                          NESRESERVATI
                                                     ONSYSTEM”
         i
         f(!
           DELETE_FLI
                    GHT(
                       sno))
        cout<<"
              \7RECORDSNOTFOUND.
                               PRESSANYKEYTO
CONTI
    NUE. ";
         el
          se
                                “
                                AIRLI
                                    NESRESERVATI
                                               ONSYSTEM”
        cout<<"
              \7RECORDS DELETED.
                               PRESS ANY KEY TO
CONTI
    NUE. ";
         getch(
              );
      }
      //
       THI
         SIS THE MAI
                   N FUNCTI
                          ON WHI
                               CH DI
                                   SPLAYS MENU AND CALLS
FUNCTI
     ONS
      voi
        dmai
           n(voi
               d)
      {
                    /
                    / PAGE 1
                           4
          PASSENGERp;
          TICKETt icket;
          RESERVEr   ;
          ti
           cket.ADDI TI
                      ON( ); int
          ch,ch1 ;whil
                     e(1)
          {
             cl
              rscr();
             gotoxy(29,9);
             cout<<"AIR      TI
                              CKET   RESERVATION"
                                                ;
             gotoxy(29,10);
             cout<<"~~~~~~~~~~~~~~~~~~~~~~~~~~" ;
              gotoxy(30,11); cout <<"
                                    1 :
             RESERVATI  ON" ;
             gotoxy(30,12);
             cout<<"2:CANCELLATI  ON";
             gotoxy(30,13);
             cout<<"3:PASSENGERRECORDS-    >"
                                            ;
             gotoxy(30,14);cout<<"
                                 4:
             ENQUI RY";
             gotoxy(30,15);
             cout<<"5:LI STOFPASSENGERS" ;
             gotoxy(30,16);
             cout<<"6:QUI  T"
                            ;
             gotoxy(30,18);
             cout<<"ENTERYOURCHOI   CE:";
             ci
              n>>ch;
                                      “
                                      AIRLI
                                          NESRESERVATI
                                                     ONSYSTEM”
swit
   ch(
     ch)
{
 case1:
        r.
         RESERVATI
                 ON(
                   );
        break;
case2:
                        “
                        AIRLI
                            NESRESERVATI
                                       ONSYSTEM”
          r.
           CANCELLATI
                    ON(
                      );
          break;
case3:
          clrscr()
                 ;
          got oxy(29,10)
                       ;
          cout <<"PASSENGERRECORDS"  ;
          got oxy(29,11)
                       ;
          cout <<"~~~~~~~~~~~~~~~~~~~~~~~";
          got oxy(33,1
                     2);
          cout <<"1:PASSENGERI NFORMATION"
                                         ;
          got oxy(33,1
                     3);cout
                           <<"
                             2:
          MODI  FY";
          got oxy(33,1
                     4);
          cout <<"0:EXI T"
                         ;
          got oxy(33,1
                     6);
          cout <<"ENTERYOURCHOI  CE-
                                   -->"
                                      ;
          cin>>ch1 ;
            i
            f(ch1==1)
         {clrscr(
                );
         p.PASS_I NFO( );
         getch( )
                ; }
          else
         i
         f(ch1 ==2)
            {clr
               scr()
                   ;
            p.MODI FY();
                       }
         else
            break;
          br eak;
case4:
          ti
           cket.
               ENQUI RY(
                       );
          gotoxy(2,
                  23);
          cout<<"PRESSANYKEYTOCONTI
                                  NUE.        "
                                              ;
          getch()
                ;
          break;
case5:
                           “
                           AIRLI
                               NESRESERVATI
                                          ONSYSTEM”
                      p.
                       LIST(
                           );
br
 eak;
           case6:
  ex
   it(
     0);
                def
                  aul
                    t:
                    cout
                       <<"
                         ENTERTHECORRECTCHOI
                                           CE"
                                             ;
               }
                                   “
                                   AIRLI
                                       NESRESERVATI
                                                  ONSYSTEM”
    }
}
        OUTPUT   “
AI
 RLI
   NESRESERVATI
              ONSYSTEM”
     LOGI
        NPAGEOF
AI
 RLI
   NESTI
       CKETRESERVATI
                   ON
              “
              AIRLI
                  NESRESERVATI
                             ONSYSTEM”
Si
 NO.OFFLI
        GHTS
               “
               AIRLI
                   NESRESERVATI
                              ONSYSTEM”
LI
 STOFTHEFLI
          GHTS
             “
             AIRLI
                 NESRESERVATI
                            ONSYSTEM”
PASSENGERRECORDS
              “
              AIRLI
                  NESRESERVATI
                             ONSYSTEM”
LI
 STOFTHEFLI
          GHTS
             “
             AIRLI
                 NESRESERVATI
                            ONSYSTEM”
PASSENGERSI
          NFORMATI
                 ON
             “
             AIRLI
                 NESRESERVATI
                            ONSYSTEM”
“
AIRLI
    NESRESERVATI
               ONSYSTEM”
Dur
  ingmaki
        ngt
          hispr
              ojectIl
                    ear
                      nc++andf
                             orpr
                                ogr
                                  ammi
                                     ng.I
t
ookhel
     pfr
       om t
          hesevar
                iousbooks.
 1
 .Obj
    ectOr
        ient
           edpr
              ogr
                ammi
                   ng(Rober
                          tlaf
                             ore)
 2.Obj
     ector
         ient
            edpr
               ogr
                 ammi
                    ng(E.
                        Bal
                          agur
                             usamy)
 3.I
   ntr
     oduct
         iont
            oc++(
                Sumi
                   taar
                      ora)
 4.LetUsC(
         Yashwantkani
                    tkar
                       )
 5.Sof
     twar
        eEngi
            neer
               ing:ROGERSPRESSMAN
 6. Syst
       em Anal
             ysi
               sandDesi
                      gnMet
                          hods:GALGOTI
                                     APUBLI
                                          CATI
                                             ONS
 7.