Case Tool Manual Set-1

Embed Size (px)

Citation preview

  • 8/12/2019 Case Tool Manual Set-1

    1/19

    INDEX

    S-NO DATE TITLE P-NO SIGN

    1 SOFTWARE DEVELOPMENT LIFE CYCLE

    PHASES (SDLC)

    2 DATA MODELING USING RATIONAL ROSE

    3 SEMANTIC DATA MODELING USINGRATIONAL ROSE

    4 SOURCE CODE GENERATORS (FORWARDENGINEERING) AND REVERSE

    ENGINEERING-MAINTENANCE

    5 RE-ENGINEERING USING C

    6 CASE ENVIRONMENTS-EXPERIMENTS

    CASE-WORKBENCHES

    7.(a) BUSINESS PLANNING AND MODELING USINGWBS

    7.(b) ANALYSIS AND DESIGN

    7.(c) PROJECT MANAGEMENT USING PROJECT2003

    8.(a) USER-INTERFACE DEVELOPMENT (UID)

    8.(b) PROGRAMMING FOR UID

  • 8/12/2019 Case Tool Manual Set-1

    2/19

    EX.NO.1 SOFTWARE DEVELOPMENT LIFE CYCLE

    Aim: To !"#$ % &%"#'% &*&+%,"o .&o/, !*"1 *o,'%& 1"&"1 ,4o$o#o15Alg!i"#m:I.#, ,4 o##o'"1 .4%** o *o,'%& $+#o., #" #6

    %5 R7!"&,* A%#*"*

    5 D*"15 Co$"18I.#,%,"o$5 T*,"15 M%",%

    $. A%$l&'i' P#$'(S)"*$!( R(+,i!(m(%"' S(i)i$"i% /SRS0Introduction

    Purpose

    T4"* $o!, $"* ,4 So,'%& R7!"&,* S.""%,"o (SRS) o& ,4 O#"R*&+%,"o S*,5 T4 O#" R*&+%,"o S*, '"## .&o+"$ % W-%*$ **, o&&*&+%,"o o ,"9,* %$ %+%"#%"#", o ,"9,* " &%"#'%*5

    Intended Audience and Reading Suggestions

    T4 :.,$ %!$" o ,4"* $o!, "#!$* .#o* o &%"#'%* %$ .!#" " ,!& ,4$ !*&* o ,4 O#" R*&+%,"o S*, %$ ,4 *o,'%& $+#o.&*5T4"* SRS '"## 1"+ % o.#, $*&".,"o o %## ,4 !,"o* %$ o*,&%",* o ,4 O#"R*&+%,"o S*,; V&*"o

  • 8/12/2019 Case Tool Manual Set-1

    3/19

    - V"'"1 ,&%" %$ %& $,%"#*- Boo9 ,"9,* o# o& ,4 %+%"#%# ,&%"*

    Operating Environment

    Operating System: The ORS shall, at a minimum, support the following OS

    ? M"&o*o, W"$o'*B%!* ", "* % W"$o'* %..#"%,"o $+#o.$ " +"*!%# %*"5

    N,'o&9 o,"o ,4%, o,* !*&@* o.!,& ,o #o%# ",&%, *&+& D%,%%*6 MS-A** (*4o!#$ %+%"#%# " ,4 *&+&)5

    H%&$'%&6 P .&o**o&; Mo!*; o%&$ %$ Mo",o&

    Design and Implementation Constraints

    U*&* %o, +"' ,4 ,&%" $,%"#* *"!#,%o!*#

    T4& "* *4o!#$ o o.,"o ,o *%+ ,4 1&%,$ &.o&,* ,o *%+ ,4 $"*9 *.% " ,4

    *&+&Assumptions and Dependencies

    T4 &%"#'% **, "* %#&%$ 9o' ,o ,4 !*&5

    I ,4& "* % 4%1 " ,4 ,&%" %$ %& $,%"#* ", *4o!#$ , " ,4 &.o&,*5

    T4 .&"o&", #+#* o& ,4 &7!"&,* %&6Sstem Features

    User !alidation

    D('!i"i% $%2 P!i!i"&O# !*&* '",4 +%#"$ !*&% %$ .%**'o&$ % ,& ",o ,4 OR **,5 T4

    ORS .&o+"$* % Lo1" .%1 '4"4 :.,* ,4 !*& '%,"1 ,o ,& ",o ,4 **, ,o.&o+"$ 4"* 8 4& !*&% %$ .%**'o&$5

    T4"* %,!& "* +& %*"%## &7!"&$ ,o .&o,, ,4 **, $%,% &o o&&!.,"o*%$ ,o %*,&%, ,4 **, $%,% ,o ,4 +%#"$ !*& %o&$"1 ,o 4"* .&"+"#1 #+#5 T4"*%,!& 4%* % HIGH #+# .&"o&", o "1 "o&.o&%,$5

    S"im,l,'4R('%'( S(+,(%('T4 !*&% %$ .%**'o&$ .&o+"$$ ,4 !*& "* +%#"$%,$ 49"1 o& ",*

    o&&*.o$"1 %+%"#%"#", " ,4 &.,$ #o1" ,%# %",%"$ ,4 ORS5I ,4 1"+ !*&% %$ .%**'o&$ "* %+%"#%#; 4"* 8 4& !*& "$,", "* +&""$

    %$ ,4 !*& "* $"&,$ ,o &*.,"+ !*& 4o.%15I ,4 1"+ !*&% %$ .%**'o&$ "* "+%#"$ ,4 #o1" .%1 'o!#$ 1"+ % &&o&

    *,%,"1 "+%#"$ !*&% 8 .%**'o&$5F,%"i%$l R(+,i!(m(%"'RE-

  • 8/12/2019 Case Tool Manual Set-1

    4/19

    U*& $%,%%* D%,%%* o,%""1 !*&% %$ .%**'o&$ $,%"#* o ,4 !*&*5

    S*, $%,%%** A## ,4 $%,%%** %",%"$ ,4 ORS

    LOGIN-FORM:

    TRAIN-DETAILS FORM:

  • 8/12/2019 Case Tool Manual Set-1

    5/19

    BOOKING FORM:

    PAYMENT FORM:

    REGISTRATION FORM:

  • 8/12/2019 Case Tool Manual Set-1

    6/19

    CODING:

    LOGIN FORM:

    P&"+%, S! $#o1"C#"9()A$o$

  • 8/12/2019 Case Tool Manual Set-1

    7/19

    P&"+%, S! $'!*&C#"9()Fo&

  • 8/12/2019 Case Tool Manual Set-1

    8/19

    M*1Bo: (.#%* ,& ,4 o&&, $,%"#*)T:,5T:, T:,5S,Fo!*E$ IE$ S!

    PAYMENT FORM:

    P&"+%, S! $.%C#"9()I Coo

  • 8/12/2019 Case Tool Manual Set-1

    9/19

    A$o$

  • 8/12/2019 Case Tool Manual Set-1

    10/19

    Server

    Branch

    City

    No_Client

    Update()

    Verify_pin()

    (from ATM Class)

    Cstomer

    !in

    Amont

    sel_action

    "nter_pin()

    #eposite()

    $ithdra$()

    Bal_en%()

    &eport()

    (from ATM Class)

    !in_valid

    'an_name

    !in_nm

    chec_valid()

    cec_'an()

    et!in()

    (from ATM Class)

    Accont_Type

    SB

    Credit

    Crrent

    Credit()

    SB()

    Crrent()

    (from ATM Class)

    Action

    Bal_"n%

    *ithdra$

    #eposite

    Bal_en%()

    *ithdra$()#eposite()

    (from ATM Class)

    Update

    et_acctype

    et_amt

    sel_action

    chec_'al()

    pdate()

    (from ATM Class)

    #ataBase

    CstomerATM Machine

    C*ASS DIA+RA)-

    CO)PO&E&( DIA+RA)-

    CstomerATM

    MachineServer

    DEP*O,)E&( DIA+RA)-

  • 8/12/2019 Case Tool Manual Set-1

    11/19

    ATM Server

    (from Use Case)

    Cstomer

    (from Use Case)

    validate!+N

    (from Use Case)

    Validate card

    (from Use Case)

    $ithdra$

    (from Use Case)

    valid_amt

    (from Use Case)

    SB

    (from Use Case)

    crrent

    (from Use Case)

    'alance "n%iry

    from Use Case

    &epor

    (from Use Case)

    #eposit

    (from Use Case)

    RESU*(- The class, component, deployment diagrams ha$e !een successfully drawn for ATM system using%AS& tool.

    E$% &o% .

    SE)A&(IC DA(A )ODE*I&+ FOR A() S,S(E)

    Aim-

    To draw 'se case, se(uence, colla!oration, acti$ity diagrams for ATM system.

    Algorithm-

    1. Semantic data models define the meaning of data within the conte)t of its

    interrelationships with other data.

    ". A semantic data model is an a!straction which defines how the stored sym!ols relate to

    the real world. Thus, the model must !e a true representation of the real world.

    #. Draw 'se case diagram and show relationship among actors.

    *. Draw se(uence, colla!oration and acti$ity diagrams.

    USECASE DIA+RA)-

    SE/UE&CE DIA+RA)-

  • 8/12/2019 Case Tool Manual Set-1

    12/19

    ATMMachine Accont Chec(in)AccontBan(Client

    !+N ,(

    Verify !in

    process transaction

    transaction sccessfl

    $ithdra$ chec(in) accont

    $ithdra$ sccessfl

    +nsert ATM card

    &e%est !+N

    &e%est -ind

    "nter -ind

    &e%est amont

    "nter amont

    #ispense Cash

    &e%est Ta(e Cash

    Ta(e Cash

    &e%est Contination

    Terminate

    !rint receipt

    CO**A0ORA(IO& DIA+RA)-

    ChecinAccont

    ATMMachine

    Accont

    BanClient

    ./ Verify !in0/ !+N ,

    1/ process transaction

    23/ transaction sccessfl

    24/ $ithdra$ checin accont

    22/ $ithdra$ sccessfl

    2/ +nsert ATM card5/ "nter -ind

    6/ "nter amont27/ Terminate

    3/ &e%est !+N8/ &e%est -ind

    7/ &e%est amont2./ #ispense Cash

    20/ &e%est Tae Cash28/ Tae Cash

    25/ &e%est Contination26/ !rint receipt

  • 8/12/2019 Case Tool Manual Set-1

    13/19

    "nter !+NNm'er

    #isplay error

    ms) SB

    Crrent!rompt for the amont to

    'e $ithdra$

    +nvalid amont

    #ispense cash

    and isse 'ill

    AC(I!I(, DIA+RA)-

    RESU*(- The use case, se(uence, colla!oration and acti$ity diagrams ha$e !een successfully drawn for ATMsystem using %AS& tool.

    E$% &o% 1

    SOURCE CODE +E&ERA(ORS2 )AI&(E&A&CE A&D RE!ERSE E&+I&EERI&+

    Aim-To generate source code for the class diagram, modify the source code and re$erse engineer

    Algorithm-

    Source Code +enerators 3For#ard Engineering4+n Rational Rose:

    1. %reate the model inLogical View

    ". %reate a new %omponent in Component View

    #. Right clic to Open Specifications, selectRealizes

    *. Select the classes for component, right clic and select Assign

    -. Right clic for the appropriate language, e.g. AS+ %//, select Generate Code ...0. The %ode eneration form comes up. All classes will !e specified ADD or '2DAT&. 3it O4 to

    complete.

    Reverse Engineering+n Rational Rose:

    1. %lic 5ile new for and new model, cancel out of the proect selection

    ". Select %omponent 6iew 7 Main

    #. Add a new %omponent

    *. Right clic component to select Open Specifications ...

  • 8/12/2019 Case Tool Manual Set-1

    14/19

    std

    rollno / int

    etno()

    ptdata()

    std() test

    s'2 / int

    s'3 / int

    etmars()

    ptdata()

    test()

    reslt

    total / int

    display()

    reslt()

    -. Select language e.g. AS+ %// and hit O4

    0. Right clic AS+ %// 7 Open %// Specifications ..

    8. On the 5iles ta!, hit Add 5iles, and clic the ellipse 9... !utton

    ;. Select all

  • 8/12/2019 Case Tool Manual Set-1

    15/19

    *&

  • 8/12/2019 Case Tool Manual Set-1

    16/19

    std

    rollno / int

    etno()ptdata()std()ptar2() test

    s'2 / ints'3 / int

    etmars()ptdata()test()

    reslttotal / int

    display()reslt()

    pri$ate int su!1

    pri$ate int su!"

    @#;A

  • 8/12/2019 Case Tool Manual Set-1

    17/19

    CODE AF(ER UPDA(IO&-

    @@Source file: %:DO%'M&TS AD S&TT+SD3AAMB DO%'M&TSre$ersestud.a$a

    pu!lic class stud

    C

    pri$ate int rollno

    @#*F

    *&

  • 8/12/2019 Case Tool Manual Set-1

    18/19

    E5%&O%6 RE7E&+I&EERI&+

    Aim- To translate assem!ly language program to sum a group of num!ers into % program..Algorithm-

    1. Start the program.

    ". et the group of num!ers

    #. 'se asm fuction to include assem!ly code.

    *. Add the n num!ers.

    -. 2rint the result

    0. Stop.

    CODI&+-

    HincludeIstdio.hJ

    HincludeIconio.hJ

    $oid main9

    C

    int n,arrK">L,res,i,iIni//

    printf9N-d,arrKiL

    printf9Sum P Nd,res

  • 8/12/2019 Case Tool Manual Set-1

    19/19

    getch9

    G

    OU(PU(-

    &nter no of elements: -

    &nter the elements:

    1

    "

    #

    *

    -

    1 " # * -

    Sum P 1-

    RESU*(-

    Thus the a!o$e % program to use assem!ly language has !een e)ecuted and e$aluated

    successfully.