computer science pro

Embed Size (px)

Citation preview

  • 7/26/2019 computer science pro

    1/20

    Computer Science

    Investigatory Project

    Hotel Management

    - Yash G.Desai

    - XII-

    - !en"riya #i"yalaya I$SHamla

    - %oll $o. &

    AISSCE 2015-16

  • 7/26/2019 computer science pro

    2/20

    Certi'cate

    This is to certify that YASH G.DESAI of Class II-A has !re!are" thei#$esti%atory !ro&ect e#title"

    'H(TE) *A+AGE*E+T,. The !ro&ect is the reslt of his eorts /e#"ea$ors. This is acce!te" as #al !ro&ect for the s&ect Co!ter

    Scie#ce for Class II.

    I#ter#al E3ai#er 4ri#ci!al E3ter#al

    E3ai#er

  • 7/26/2019 computer science pro

    3/20

    Contents Ac#ole"%ee#t

    Astract

    Class a#" "ata eers Sorce co"e

    (t!t

    7ilio%ra!hy

  • 7/26/2019 computer science pro

    4/20

    c(no)le"gement

    I !lace y si#cere tha#s to y Co!ter Scie#ceteacher

    *r. Sit Sah for his %i"a#ce a#" a"$ices to co!letey

    or sccessflly. He !ro$i"e" e the softare for!ro%ras

    a#" hel!e" e i# recticatio# of errors.

    I ol" also lie to tha# y !are#ts for theire#cora%ee#t

    a#" s!!ort i# y hle $e#tre.

  • 7/26/2019 computer science pro

    5/20

    *stractThe !ro&ect is aie" to create a !ro%ra i# C88 for

    carryi#% ot eecti$e a#a%ee#t of recor"s ofcstoers for e9cie#t hotel a#a%ee#t si#% co#ce!t

    of "ata le ha#"li#%.

    The !ro%ra allos the ser to oo roos: i#!t: o"ifya#" "elete cstoer "etails: "is!lay recor"s a#" %e#erateill ase" !o# ty!e of roo a#" #o. of "ays occ!ie" .

  • 7/26/2019 computer science pro

    6/20

    ass a a

    Mem*ers Class ; hotelData

    Mem*ers

    ,YP Purpose

    roo

  • 7/26/2019 computer science pro

    7/20

    Source

    Co"e///////////////////////////////// HD% 0I1S 2SD I$ ,HP%34C,/////////////////////////////////i#cl"eBiostrea.hi#cl"eBco#io.hi#cl"eBfstrea.hi#cl"eB"os.h

    i#cl"eBst"io.hi#cl"eBioa#i!.hi#cl"eBstri#%.h

    ///////////////////////////////// C1SS 2SD I$ ,H P%34C, //////////////////////////////////

    class hotelsi%#e" i#t roo?0@char a""ress>50@char !ho#e>20@

    i#t checFi#t to chec roo stats $oi" o"ifyFi#t to o"ify the recor" $oi" "elete

  • 7/26/2019 computer science pro

    8/20

    cotBBLM#M#L cotBBL Mt----------------------------------------------------------- M#L cotBBL MtNN O O O O O O OO O OO O O O NN M#L cotBBL MtNN O O O O O O O O OO O NN M#L

    cotBBL MtNN O O O O O OOO O O O OO OOO NN M#L

    cotBBL MtNN O O O O O O O O OO O NN M#L cotBBL MtNNO O O O O O O OOOOOO O O O NN M#L cotBBL Mt

    ----------------------------------------------------------- L cotBBLM#M#LcotBBLM#MtMtMtMtOOOOOOOOOOOOOLcotBBLM#MtMtMtMtO *AI+ *E+P OL cotBBLM#MtMtMtMtOOOOOOOOOOOOOLcotBBLM#M#M#MtMtMt1.7oo A QooLcotBBLM#MtMtMt2.Cstoer Qecor"LcotBBLM#MtMtMt?.Qoos Allotte"L

    cotBBLM#MtMtMtR.E"it Qecor"LcotBBLM#MtMtMt5.7illLcotBBLM#MtMtMt6.E3itL

    case 2; "is!layFreacase ?; roosFreacase R; e"itFreacase 5; illF

    reacase 6; rea"efalt; cotBBLM#M#MtMtMtro#% choice.....JJJLcotBBLM#MtMtMt4ress a#y ey to co#ti#e....JJL%etchF

    cotBBLM#M#MtMtMtE#ter Yor Choice; L ci#choicesitchFchoicecase 1; a""F

    rea

    ////////////////////////

    / 02$C,I3$ ,3 533! %33M //////////////////////////$oi" hotel;;a""FclrscrFi#t r: a%K0ofstrea fotFLQecor"1."atL:ios;;a!!cotBBLM# E#ter Cstoer DetailsLcotBBLM# ----------------------LcotBBLM#M# Qoo #o; Lci#ra%KchecFrifFa%KK1cotBBLM# Sorry..JJJQoo is alrea"y ooe"Lelseroo

  • 7/26/2019 computer science pro

    9/20

    cotBBL A""ress; L%etsFa""resscotBBL 4ho#e +o; L%etsF!ho#efot.riteFFcharOthis:siUeofFhotelcotBBLM# Qoo is ooe"...JJJL

    cotBBLM# 4ress a#y ey to co#ti#e.....JJL%etchFfot.closeF6///////////////////////// 02$,I3$ ,3 CHC! %33M S,,2S /////////////////////////

    i#t hotel;;checFi#t ri#t a%K0ifstrea #FLQecor"1."atL:ios;;i#hileFJ#.eofF

    $oi" hotel;;"is!layFclrscrFifstrea #FLQecor"1."atL:ios;;i#i#t r:a%K0cotBBLM# E#ter roo #o; L

    #.rea"FFcharOthis:siUeofFhotelifFroo

  • 7/26/2019 computer science pro

    10/20

    //////////////////////// 02$C,I3$ ,3 DISP1Y 113,D%33M ////////////////////////$oi" hotel;;roosFclrscrFifstrea #FLQecor"1."atL:ios;;i#

    cotBBLM#MtMtMt )ist (f Qoos Allotte"L cotBBLM#MtMtMt ----------------------LcotBBLM#M# Qoo +o. +aeMtMtA""ressMtMtMt 4ho#e +o.M#LhileF#.rea"FFcharOthis:siUeofFhotel cotBBLM#M# LBBL LBBroo

  • 7/26/2019 computer science pro

    11/20

    ///////////////////////////// 02$,I3$ ,3 D1, %C3%D /////////////////////////////$oi" hotel;;"elete

  • 7/26/2019 computer science pro

    12/20

    ifstrea FLQecor"1."atL:ios;;i#Nios;;i#aryhileFJ.eofFotBBLM#Ge#erati#% ill...Lslee!F2ifFroo

  • 7/26/2019 computer science pro

    13/20

    3utputs

  • 7/26/2019 computer science pro

    14/20

    Main menu

  • 7/26/2019 computer science pro

    15/20

    ""ing $e)

    Customer%ecor"

  • 7/26/2019 computer science pro

    16/20

    #ie)ingCustomer Details

  • 7/26/2019 computer science pro

    17/20

    "it Menu&Mo"i7ying an" "eleting

    recor"s

  • 7/26/2019 computer science pro

    18/20

    Display o7 all

    recor"s

  • 7/26/2019 computer science pro

    19/20

    5illing

  • 7/26/2019 computer science pro

    20/20

    5i*liography

    .cpp7orschool.co

    ycse%i"e.co

    .%oo%le.co.i#

    staco$ero.co