project report file

Upload: abishek-aditya

Post on 04-Jun-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/13/2019 Project Report File

    1/55

  • 8/13/2019 Project Report File

    2/55

    CERTIFICATE

    This is to certify that Abishek Aitya has co!"#ete the "ro$ect tit#e

    %i'ht Reser(atio) Syste!* +)er !y s+"er(isio) i) "artia# f+#fi##!e)t of

    the re+ire!e)t for the a-ar of the .2th sta)ar/

    To the best of !y k)o-#e'e, the sa!e has )ot bee) s+b!itte i) a)y

    other schoo# for the "+r"ose of "+rs+i)' a)y other co+rse/

    Internal Superv!"r E#ternal Superv!"r

    $r!% Kan&a A'ar(al

    )C"*puter tea+,er

  • 8/13/2019 Project Report File

    3/55

    ACKNOWLEDE!ENT

    I -ish to e0"ress !y ee" 'ratit+e a) si)cere tha)ks to 1s/ for her

    e)co+ra'e!e)t a) for a## the faci#ities that he "ro(ie for this "ro$ect

    -ork/

    I si)cere#y a""reciate this !a')a)i!ity by taki)' !e i)to his fo# for

    -hich I sha## re!ai) i)ebte /I e0te) !y hearty tha)ks to !y co!"+ter

    teacher -ho '+ie !e to o this "ro$ect s+ccessf+# co!"#etio) of this

    "ro$ect/ I take this o""ort+)ity to e0"ress !y ee" se)se of 'ratit+e for

    her i)(a#+ab#e '+ia)ce co)sta)t e)co+ra'e!e)t, co)str+cti(e co!!e)ts,

    sy!"athetic attit+e a) i!!e)se !oti(atio) -hich has s+stai)e !y

    effort at a## sta'es of this "ro$ect -ork/

    ABISHEK ADITYA

  • 8/13/2019 Project Report File

    4/55

    DECLARATION

    This is the re"ort of the "ro$ect -ork e)tit#e

    i'ht Reser(atio) Syste!

    I hereby ec#are that this "ro$ect re"ort is bei)' s+b!itte by !e to the

    De"art!e)t of Co!"+ter Scie)ce, KENDRIYA VIDYALAYA NOIDA

    a) Affi#iate to C/3/S/E/ i) "artia# f+#fi##!e)t of the a-ar of the .2th

    sta)ar/

    A.!,e& Ata

    Cla!! XII B

  • 8/13/2019 Project Report File

    5/55

    CONTENTS

    Coi)'////

    // 5

    Soft-are Re+ire!e)ts/ 22

    O+t"+t

    // 26

    3ib#io'ra"hy///////////////////////////////////////////////// 4.

    CODIN

    #include

  • 8/13/2019 Project Report File

    6/55

    #include

    #include

    #include

    #include

    #include

    #include#include

    char f[10]="f";

    char s[10]="s";

    int addr,ad,flag,f1,d,m,i,amt;

    float tamt;

    class login

    public!

    char id[100];

    char pass[100];

    char passord;

    $oid getid%&

    cout

  • 8/13/2019 Project Report File

    7/55

    char bp[100];

    char dest[100];

    int c1,c1fare;

    int c,cfare;

    int d,m,(;$oid getdetail%&

    cout(;

    )

    $oid displa(detail%&

    cout

  • 8/13/2019 Project Report File

    8/55

    char pname[10][100];

    int age[0];

    char clas[10];

    int nosr;

    int i;

    int d,m,(;int con;

    float amc;

    $oid getresdet%&

    cout

  • 8/13/2019 Project Report File

    9/55

  • 8/13/2019 Project Report File

    10/55

    char clas[10];

    int nosc;

    int d,m,(;

    float amr;

    $oid getcancdet%&

    coutm>>(;

    cout

  • 8/13/2019 Project Report File

    11/55

    );

    $oid manage%&;

    $oid can%&;

    $oid user%&;

    $oid database%&;

    $oid res%&;$oid reser$e%&;

    $oid displa(passdetail%&;

    $oid ancel%&;

    $oid en6uir(%&;

    $oid main%&

    clrscr%&;

    int ch;

    cout

  • 8/13/2019 Project Report File

    12/55

    case !

    user%&;

    brea3;

    case !

    eKit%0&;

    ))hile%ch

  • 8/13/2019 Project Report File

    13/55

    cin>>ch;

    cout

  • 8/13/2019 Project Report File

    14/55

    manage%&;

    brea3;

    case !

    displa(passdetail%&;

    brea3;

    ))hile%ch

  • 8/13/2019 Project Report File

    15/55

    fstream f1,f;

    timeSt t;

    f1.open%"t.tKt",ios!!inPios!!outPios!!binar(&;

    f.open%"p.tKt",ios!!inPios!!outPios!!binar(Pios!!app&;

    int ch;

    b.getresdet%&;hile%f1.read%%char & 2a,si:eof%a&&&

    if%a.tno==b.tno&

    if%strcmp%b.clas,f&==0&

    if%a.c1>=b.nosr&

    amt=a.c1fare;

    addr=f1.tellg%&;

    ad=si:eof%a.c1&;

    f1.see3p%addr4%Mad&&;

    a.c1=a.c14b.nosr;

    f1.rite%%char & 2 a.c1,si:eof%a.c1&&;if%b.con==1&

    cout

  • 8/13/2019 Project Report File

    16/55

    cout

  • 8/13/2019 Project Report File

    17/55

  • 8/13/2019 Project Report File

    18/55

    )

    else

    flag=0;

    )

    )if%flag==0&

    cout

  • 8/13/2019 Project Report File

    19/55

  • 8/13/2019 Project Report File

    20/55

  • 8/13/2019 Project Report File

    21/55

    goto h;

    c.displa(cancdet%&;

    )

    )

    )

    else if%strcmp%c.clas,s&==0&

    hile%f1.read%%char & 2 a,si:eof%a&&&

    if%a.tno==c.tno&

    a.c=a.c7c.nosc;

    d=a.d;

    m=a.m;

    addr=f1.tellg%&;

    ad=si:eof%a.c&;

    f1.see3p%addr4%ad&&;

    f1.rite%%char & 2 a.c,si:eof%a.c&&;

    tamt=b.amc;

    if%%c.d==d&22%c.m==m&&

    cout

  • 8/13/2019 Project Report File

    22/55

    )

    else

    cout

  • 8/13/2019 Project Report File

    23/55

  • 8/13/2019 Project Report File

    24/55

    cout

  • 8/13/2019 Project Report File

    25/55

  • 8/13/2019 Project Report File

    26/55

    case !

    f.open%"id.tKt",ios!!inPios!!outPios!!binar(&;

    f.see3g%0&;

    hile%f.read%%char & 2 a,si:eof%a&&&

    a.displa(id%&;

    )

    f.close%&;

    brea3;

    )

    )hile%ch

  • 8/13/2019 Project Report File

    27/55

    SOFTWARE RE"#IRE!ENTS

    T+rbo C778i)o-s 9: ; o)-ars

  • 8/13/2019 Project Report File

    28/55

    O$t%$t~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    .......WELCOME TO FLIGHT RESERVATION SYSTEM.....................

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:1

    Enter the admininistrator password:*********

    Enter the password correctly

    You are not permitted to loon this mode

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:1

    Enter the admininistrator password:*********

    .............................ADMINISTRATOR MENU.........................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:1

  • 8/13/2019 Project Report File

    29/55

    Enter the details as (ollows

    )liht no:123

    )liht name:yercaud exp

    oardin point:erode

    #estination pt:chennai

    +o o( seats in usiness class , (are per tic-et:1 2

    +o o( seats in Economy class , (are per tic-et:2 1

    #ate o( tra/el:2 3 20

    #o you want to add one more record

    y(or Yes

    n(or +o

    y

    Enter the details as (ollows

    )liht no:12$

    )liht name:shatapti exp

    oardin point:chennai

    #estination pt:"om"ay

    +o o( seats in usiness class , (are per tic-et:3 2

    +o o( seats in Economy class , (are per tic-et:2 3

    #ate o( tra/el:$ % 20

    #o you want to add one more record

    y(or Yes

    n(or +o

    n

  • 8/13/2019 Project Report File

    30/55

    .............................ADMINISTRATOR MENU....................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:2

    Enter the details as (ollows

    )liht no:12&

    )liht name:-urula exp

    oardin point:"om"ay

    #estination pt:chennai

    +o o( seats in usiness class , (are per tic-et:2 3

    +o o( seats in Economy class , (are per tic-et:3 2

    #ate o( tra/el:$ 3 20

    .............................ADMINISTRATOR MENU.......................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:3

    Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep

  • 8/13/2019 Project Report File

    31/55

    123 yercaud exp erode chennai 1 2 2 1 2320

    12$ shatapti exp chennai "om"ay 3 2 2 3 $%20

    12& -urula exp "om"ay chennai 2 3 3 2 $320

    .............................ADMINISTRATOR MENU.................................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:$

    ..........WELCOME TO THE USER MANAGEMENT MENU........

    1.!reate id data "ase

    2.Add details

    3.#isplay details

    $.'eturn to the main menu

    Enter your choice:1

    Enter your id:ashwin

    Enter the password:**********

    #o you want to add one more record

    yYes

  • 8/13/2019 Project Report File

    32/55

    n+o

    y

    Enter your id:a4inth

    Enter the password:**********

    #o you want to add one more record

    yYes

    n+o

    y

    Enter your id:"ala

    Enter the password:********

    #o you want to add one more record

    yYes

    n+o

    y

    Enter your id:hemanth

    Enter the password:*********

    #o you want to add one more record

    yYes

    n+o

    n

    1.!reate id data "ase

    2.Add details

    3.#isplay details

    $.'eturn to the main menu

    Enter your choice:2

    Enter your id:"erlin

    Enter the password:*********

    1.!reate id data "ase

    2.Add details

  • 8/13/2019 Project Report File

    33/55

    3.#isplay details

    $.'eturn to the main menu

    Enter your choice:3

    5d:ashwin

    6assword:11111111

    5d:a4inth

    6assword:22222222

    5d:"ala

    6assword:33333333

    5d:prem

    6assword:$$$$$$$$

    5d:hemanth

    6assword:%%%%%%%%

    5d:"erlin

    6assword:&&&&&&&&

    1.!reate id data "ase

    2.Add details

    3.#isplay details

    $.'eturn to the main menu

    Enter your choice:$

    . .............................ADMINISTRATOR MENU........................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:%

  • 8/13/2019 Project Report File

    34/55

    .

    .............................ADMINISTRATOR MENU...................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:&

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:2

    ************************************************************************

    **********WELCOME TO THE USER MENU********************

    ************************************************************************

    Enter your id:

    ashwin

    Enter your password:*********

    Enter your user id and password correctly

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:2

    **********************************************************************

  • 8/13/2019 Project Report File

    35/55

    **********WELCOME TO THE USER MENU******************

    **********************************************************************

    Enter your id:

    ashwin

    Enter your password:*********

    1.'eser/e

    2.!ancel

    3.En7uiry

    $.'eturn to the main menu

    Enter your choice:1

    1.'eser/e

    2.'eturn to the main menu

    Enter your choice:1

    Enter the details as (ollows

    )liht no:123

    )liht name:yercaud

    oardin point:erode

    #estination pt:chennai

    +o o( seats re7uired:1

    6assener name:ra4a

    6assener ae:$%

    6assener name:rau

    6assener ae:32

    6assener name:ra/i

    6assener ae:3$

    6assener name:/inoth

    6assener ae:23

    6assener name:ra4u

    6assener ae:2$

  • 8/13/2019 Project Report File

    36/55

    6assener name:latha

    6assener ae:$%

    6assener name:mala

    6assener ae:23

    6assener name:/imala

    6assener ae:32

    6assener name:-athir

    6assener ae:12

    6assener name:-osi

    6assener ae:$3

    Enter the class "usiness class eEconomy class:(

    #ate o( tra/el:2 2 20

    Enter the concession cateory

    1.8ilitary

    2.9enior citien

    3.!hildren "elow % yrs

    $.+one

    $

    ..................................END OF GETTING DETAILS..............................

    You cannot get any concesson

    ..............................................................................................................

    ...............................................................................................................

    ;ic-et no:1

  • 8/13/2019 Project Report File

    37/55

  • 8/13/2019 Project Report File

    38/55

  • 8/13/2019 Project Report File

    39/55

  • 8/13/2019 Project Report File

    40/55

    Enter the correct ;ic-et no

    1.'eser/e

    2.!ancel

    3.En7uiry

    $.'eturn to the main menu

    Enter your choice:3

    Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep

    123 yercaud exp erode chennai 1 2 2 1 2320

    12$ shatapti exp chennai "om"ay 3 2 2 3 $%20

    12& -urula exp "om"ay chennai 2 3 3 2 $320

    1.'eser/e

    2.!ancel

    3.En7uiry

    $.'eturn to the main menu

    Enter your choice:3

    Trno Trname Bpt Dest Fs Ffare Ss Sfare Date of dep

    123 yercaud exp erode chennai 1 2 2 1 2320

    12$ shatapti exp chennai "om"ay 3 2 2 3 $%20

    12& -urula exp "om"ay chennai 2 3 3 2 $320

  • 8/13/2019 Project Report File

    41/55

    1.'eser/e

    2.!ancel

    3.En7uiry

    $.'eturn to the main menu

    Enter your choice:1

    1.'eser/e

    2.'eturn to the main menu

    Enter your choice:1

    Enter the details as (ollows

    )liht no:123$%

    )liht name:shatapti

    oardin point:chennai

    #estination pt:"om"ay

    +o o( seats re7uired:1

    6assener name:ra4a

    6assener ae:23

    Enter the class "usiness class eEconomy class:(

    #ate o( tra/el:3 2 20

    Enter the concession cateory

    1.8ilitary

    2.9enior citien

    3.!hildren "elow % yrs

    $.+one

    $

    .....................................END OF GETTING DETAILS...................................

    ,,,,,,............W"ong F)g*t no.............................................................

  • 8/13/2019 Project Report File

    42/55

    ,,,,,,,,......Ente" t*e F)g*t no &"o' t*e %ata -ase.........................

    1.'eser/e

    2.'eturn to the main menu

    Enter your choice:2

    1.'eser/e

    2.!ancel

    3.En7uiry

    $.'eturn to the main menu

    Enter your choice:$

    ^^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:1

    Enter the admininistrator password:*********

    .............................ADMINISTRATOR MENU....................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

  • 8/13/2019 Project Report File

    43/55

    Enter your choice:%

    . .............................ADMINISTRATOR MENU...................................

    1.!reate detail data "ase

    2.Add details

    3.#isplay details

    $.User manaement

    %.#isplay passener details

    &.'eturn to main menu

    Enter your choice:&

    ^^^^^^^^^^^^^^^^^^^^^^MAIN MENU ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    1.Admin mode

    2.User mode

    3.Exit

    Enter your choice:3

  • 8/13/2019 Project Report File

    44/55

  • 8/13/2019 Project Report File

    45/55

  • 8/13/2019 Project Report File

    46/55

  • 8/13/2019 Project Report File

    47/55

  • 8/13/2019 Project Report File

    48/55

  • 8/13/2019 Project Report File

    49/55

  • 8/13/2019 Project Report File

    50/55

  • 8/13/2019 Project Report File

    51/55

  • 8/13/2019 Project Report File

    52/55

  • 8/13/2019 Project Report File

    53/55

  • 8/13/2019 Project Report File

    54/55

  • 8/13/2019 Project Report File

    55/55

    &I&LIORAP'(

    &oo)s

    C77 8ith S+!ita Arora < C#ass =II

    We* Siteshtt%+,,---.ir/t/./om

    htt%+,,sta/)over0lo-./om,

    ---./%rogramming./om,

    http://www.irctc.com/http://stackoverflow.com/http://var/www/apps/conversion/tmp/www.cprogramming.com/http://www.irctc.com/http://stackoverflow.com/http://var/www/apps/conversion/tmp/www.cprogramming.com/