5.

Use Case Diagram for Employee Management System

Get Employee Details Get Attendance Details

C L E R K

Get Salary Details

Calculate Salary

Pay Salary

Update Salary Details

1. Use Case Diagram for ATM

Take Card Generate Report Login

U S E R

Withdraw

Update Account Info

A T M

Give Card Give Balance Slip Check Login

Balance Checking

Check Account Take Money

2. Use Case Diagram for Library Management

M an ag er

Receive Money Create Registration Generate Report Login P E R S O N Cancel Registration Record Book Info Update Book Info
Cl er k
Maintain Attendance

Calculate Salaries Check Book Present
Maintain General Expenses

Give Book Pay Money Take Book Update Registration info

3. Use Case Diagram for Ordering Processing
Take Goods from Company

Take Order Browse catalog & Select items C U S T O M E R Check Good Present or Not() Call sales person Take Payment Give shipping info

Give Order Details to Company Give Bill to Customer Give Goods to Customer

S A L E S M A N

Give payment info

Get confirmation#

Give Payment to Company

4. Use Case Diagram for Student Registration
Validate Registration form
rate Gene
Update Registration Details

Get Prospectus Read Prospectus Get Registration Form Read Registration Form Fill Registration form Submit Registration Form Take Identity Card

Login

rt Repo

Give Identity Card

S T U D E N T

View Seats Info
Check Seats Available

C L E R K

6. a) Sequence Diagrams for ATM Sequence Diagram for Withdraw
Customer 1: 3: ATM Machine Pin Info Account Info Transaction

Insert Card () Request for Pin () 2: Enter Pin () Get pin Info () 4: 5: Check pin Info ()

6: 7: 8: 9:

Enter Transaction Withdraw
Ask to enter Amount

Enter Amount 10: 11: Get Account Info () Check Required Balance Update ()

Dispense Money 12: 13: () Collect Money () 14: 15: 16:

Store Transaction Details () Get Transaction Info ()

17: Give Slip Collect Slip Reset Card Collect Card 18:

Get pin Info ()

19: 20: 21:

Sequence Diagram for Invalid PIN Code ATM Machine

Customer

Pin Info

Account Info

1:

Insert Card Get Balance Card Info ()

2:

Check Which Bank Card 3:

4:

Request Pin ()

5:

Enter Pin () Get Pin Info ()

6:

7:

Check Pin ()

8:

Display Invalid Password

Sequence Diagram for Invalid Amount Customer 1: Insert Card 2: Get Bank Info () Check Which Bank Card ATM Machine Pin Info Bard Card Info Account Info

3: 4: 5: Request Pin () Enter Pin () 6: 7: Request Transaction Withdraw Request Amount Enter Amount 12:

Get Pin Info () Check Pin Info ()

8: 9: 10: 11:

Get Account Info ()

13:

Check Required Amount

14:

Display Message

Sequence Diagram for Balance Check Bank Card Info Pin Code Info Account Info Transaction Details

Customer
1:

ATM

Insert Card

2:
3: 4:
Request Pin () Enter Pin ()

Check Bank Card ()

5: 6:
7:
Request Transaction Type () Enter Transaction Type () Request Account Type () Enter Account 11 Type ()

Get Pin Info () Check Pin Code ()

8:

9:

10:

Get Account Info () Generate Slip ()

12
13: 14:
Give Slip () Take Slip ()

15:
16: 17:
Give card () Take card ()

Update ()

Sequence Diagram for Invalid Bank Card

Customer 1. Insert Card ()

ATM

Bank Card Info

2.

Get Bank Card Info ()

3.

Check Bank Card ()

4.

Display Message ()

Sequence Diagram for Changing Password Bank Card Info

Customer
1:

ATM

Pin Code Info

Account Info

Transaction Details

Insert Card

2:
3: 4:
Request Pin () Enter Pin ()

Check Bank Card ()

5: 6:
7:
Request Transaction Type () Enter Change Password () Request New Password () Enter New Password () Display Message ()

Get Pin Info () Check Pin Code ()

8:

9:

10: 11:

12

13: 14:

Give Slip () Take Slip ()

Generate Slip ()

15:
17: 18:
Give Card () Take Card ()

Update ()

b)

Collaboration Diagrams for ATM Collaboration Diagram for Withdraw 20: Generate Slip 2: Get Bank Card Info 3: Check Bank Card 6: Get Pin Info 7: Check Pin Code Pin Code Info Bank Card

A T M Machine

U S E R

14: Get Account Info

Account Info

15: Check Amount

16. Update

17: Update

Transaction

Collaboration Diagram for Invalid PIN Code

2: Get Bank Card Info 3: Check Bank Card 6: Get Pin Info U S E R 7: Check Pin Code

Bank Card

Pin Code Info

A T M Machine

Collaboration Diagram for Invalid Amount 2: Get Bank Card Info 3: Check Bank Card 6: Get Pin Info 7: Check Pin Code Pin Code Info Bank Card

A T M Machine

U S E R

14: Get Account Info

Account Info

7: Check Pin Code

15: Check Amount

Collaboration Diagram for Balance Check 2: Get Bank Card Info 3: Check Bank Card 6: Get Pin Info 7: Check Pin Code Pin Code Info Bank Card

A T M Machine

U S E R

12: Get Account Info 13: Generate Report

Account Info

14: Update

Transaction Info

Collaboration Diagram for Invalid Bank Card

2: Get Bank Card Info 3: Check Bank Card

Bank Card

A T M Machine

U S E R

Collaboration Diagram for Changing Password

2: Get Bank Card Info 3: Check Bank Card 6: Get Pin Info 7: Check Pin Code

Bank Card

Pin Code Info

A T M Machine

U S E R

14: Generate Report

13: Update

Pin Info

7 a) Sequence Diagram for Employee Management System
Employee Details

Clerk 1:

Attendance Get Employee Details ()

Employe e

Salary Details

2:

Get Attendance Info ()

3:

Check for Leaver ()

4:

Check for any Overtime

5:

Calculate Salary

6:

Calculate Gross Salary

7:

Calculate Net Salary Give Salary () Total Salary ()

8: 9:

10:

Update ()

b) Collaboration Diagram for Employee Management System

Employee

E M P L O Y E E

8: Give Salary() 9: Take Salary()

C L E R K

Attendance

2: Get Attendance Info() 3: Check for Leaves() 10: Update()

Salary

8 a) Sequence Diagrams for Library Management System
Sequence Diagram for Taking Book

Person 1: Ask for Book ()

Clerk 2: 3: Reply to Person Give Registration Identity 6:

Registration Info

Receiving Details

Book Info

Get Book Info ()

Check Book Present Get Registration Info ()

4: 5:

7: 8:

Check Registration Get Receiving Details ()

9:

Check Person take any book or not Update Book Info () Update Receiving Details ()

10: 12: 13: 14: 15: Give Book Take Book Give Registration Take Registration 11:

Sequence Diagram for Giving Book Person 1: Give Registration and Book () Clerk Registration Info Get Registration Info () Receiving Details Book Info

2:

3:

Check Registration Check Receiving Details ()

4:

5:

Check Return Date () Calculate Penalty ()

6: Give Penalty Slip Give Money 9:

7: 8:

Update Receiving Details ()

10:

Update Book Info ()

11:

12:

Give Registration Slip () Take Registration Slip ()

Registration Sequence Diagram for Create Library Registration Person Library Clerk

1: Take Registration Form() 2: Read Registration Form() 3: Fill Registration Form() 4: Give Registration Form() 5: Check Registration Form() 6: Give Money() 7: Take Money()

7: Update()

8: Give Registration Slip() 9: Take Registration Slip()

Registration Sequence Diagram for Cancel Library Registration Person 1: 2: 3: Request for Cancel Registration () Request for Registration Slip () Give Registration Slip () 4: Check Registration Slip () 5: Cancel Registration () 6: Update () Clerk

7: Give Money ()

8: Take Money ()

b)

Collaboration Diagrams for Library Management System
Collaboration Diagram for Taking Book

P E R S O N

C L E R K

Collaboration Diagram for Giving Book

Registration Info Book Info

P E R S O N

C L E R K

Transaction Details

Collaboration Diagram for Create Library Registration
3: Fill Registration Form()

P E R S O N

C L E R K

Registration

2: Read Registration Form()

Library

Collaboration Diagram for Cancel Library Registration

P E R S O N

C L E R K

Registration

9 a) Sequence Diagrams for Order Processing Application
Customer 1: Call Salesman() 2: Request for Call() 3: Tell Good Details() 4: Get Good Info() Sales Man Goods Dispatch Company

5: Check Good Present or Not() 6: Tell Details() 7: Place Order() 8: Take Order() 9: Give Payment() 10: Take Payment() 11: Give Order Slip() 12: Take Order Slip() 13: Give Order Details() 14: Give Goods() 15: Give Goods() 16: Take Goods() 17: Give Balance() 18: Take Balance() 19: Update

b)

Collaboration Diagram for Order Processing Application

Good

C U S T O M E R

S A L E S M A N

Company Dispatch

10.a) Sequence Diagram for Student Registration Process

Student 1: 2: 3: 4: 5: 6: Get Prospectus ()

College

Clerk

Seat

Registration

Read Prospectus () Get Registration Form ()

Fill Registration Form () Add Required Forms () Submit Registration Form () 7: Get Seets Info () 8: 9: 10: Give Identity Card 11: 12: Check Seats Available Update Update Validate Form ()

Registration

Seat

Sequence Diagram for Cancel Student Registration

Person 1: 2: 3: Request for Cancel Registration () Request for Registration Slip () Give Registration Slip ()

Clerk

4: Check Registration Slip () 5: Cancel Registration () 6: Update () 7: Update()

8: Give Money () 9: Take Money ()

b)

Collaboration Diagram for Student Registration Process

C O L L E G E

S T U D E N T

Seats Info

Clerk

Collaboration Diagram for Cancel Student Registration

P E R S O N

C L E R K

Registration Seat

11 a) State Transition Diagrams for ATM
State Transition Diagram for Withdraw Default Desktop Insert Card Check Bank Card Request Pin Enter Pin Validate Pin Ok Request Transaction Type Withdraw Request Account Type Enter Account Type Validate Account Type

Cancel

Request Amount Enter Amount Type Transaction Proceed Ok Dispense Money Take Money Generate Slip Take Slip Reset Card

State Transition Diagram for Invalid Pin

Default Desktop Insert Card Check Bank Card

Request Pin Enter Pin

Validate Pin

State Transition Diagram for Invalid Amount

Default Desktop Insert Card Check Bank Card

Cancel

Request Pin Enter Pin Validate Pin Ok Request Transaction Type Enter Transaction Type Request Account Type Enter Account Type Request Amount Enter Amount Transaction Proceed

State Transition Diagram for Check Balance

Default Desktop Insert Card Check Bank Card

Cancel

Request Pin Enter Pin Validate Pin Ok Request Transaction Type Enter Transaction Type Request Account Type Enter Account Type Request Amount Enter Amount Transaction Proceed

State Transition Diagram for Invalid Bank Card

Default Desktop Insert Card

Validate Card Cancel

Display Message

State Transition Diagram for Changing Password

Default Desktop Insert Card Check Bank Card

Cancel

Request Pin Enter Pin Validate Pin Ok Enter Change Password Enter Password Display Message

Generate Slip Take Slip

Reset Card

b)

Class Diagram for ATM

Pincode Withdraw Amount Account Type Insert Card () Enter Pin () Enter Transaction Type () Enter Amount Enter Account Type () Take Card () Take Money

Account Number Account Name Balance Withdraw Amount Show Account Details () Show Account Type () Show Balance () Set Balance () Withdraw () Deposit ()

A T M M ac hi ne

Pincode Withdraw Amount Account Type Transactions Type GetCard () Get Pincode () Get Transaction Type () Get Account Type () Get Amount () Check Card () Check Pincode () Check Amount () Get Account Info () Get Bankcard Details () Set Transaction Details () Update Account () Update Transaction Display Money () Give Card () Generate Balance Report Give Balance Report ()

Show Balance Card Details ()

PinCode Set Pincode () Show Pincode ()

Pi nc o de In fo

T ra ns ac ti o n D et ai ls
Transaction Id Set Transactions Details

B a n k C ar d

A cc o u nt

P er so n

12 a) State Transition Diagram for Employee Management System

Clerk

Check Employee Details

Check Attendance Details

Check for Overtime

Calculate Salary

Give Salary

Update Salary Details

b)

Class Diagram for Employee Management System

E m pl oy ee

E_Name E_Age E_Sex E_Address E_Number E_Phoneno E_Designation E_Qualification E_Salary E_Section Take Salary()

A_Section A_Number Get Attendance Info() Set Attendance Info()

S_Eno Get Salary Info() Set Salary Info()

S al ar y

1

A tt en d a nc e

1

13. a) State Transition Diagram for Library Management System
State Transition Diagram for Taking Book From Library Person Clerk

Ask For Book Request Book Details Tell Details Request Registration Give Registration Slip Request to Take Book Receive Book Tell Message Tell Message

do: Request Book Details Till Book Details Cance l Check Book Info Ok Request for Registration Slip Give Registration Slip Cance l Check Registration Info

Request Transaction Details Give Transaction Details Cance l Tell Message Check Transaction Details Ok Update Transaction Details

Give Book & Registration Slip

Update Book Details

State Transition Diagram for Giving Book

Give Registration Slip & Book Check Registration & Calculate Penalty Pay Penalty Give Registration Slip Take Registration Slip

Get Registration Info

Check Registration Slip Ok Check Transaction Details

Check Return Date

Calculate Penalty

Update Transaction Details & Book Details

Give Penalty Slip

Give Registration Slip

State Transition Diagram for Create Library Registration

Clerk

Person

Take Registration Form ()

Take Registration Form () Cance l Read Registration Form () Check Registration Form ()
Ok

Reject Registration form ()

Read Registration Info ()

Fill Registration Form () Update Registration Info ()

Submit Registration Form ()

Receiving Registration Slip

Generate Registration Slip ()

Give Registration Slip

State Transition Diagram for Cancel Library Registration

Request Cancel Registration Request Registration Slip

Request Registration Slip Give Registration Slip

Give Registration Slip Give Money

Check Registration Slip Ok

Take Money

Cancel Registration

Update

Give Money

b)

Class Diagrams for Library Management Application

P_Name P_Age P_Sex P_Address P_Regno P_Phoneno Create Registration() Give Book() Take Book() Cancel Registration()

1

R_Number R_PName R_Paddress Get Registration Info() Set Registration Info()

0..*

0..*

T_Number T_Time Get Transaction Info() Set Transaction Info()

T ra ns ac ti o n

B_Number B_Name B_Cost B_Publisher B_Author B_Subject B_Noofcopies Get Book Info() Set Book Info()

B oo k

R eg ist ra ti o n

P er so n

14 a) State Transition Diagram for Order Processing Application.

b)

Class Diagram For Order Processing

Order DateRecived : Date IsPrepaid : Boolean Number : String Price : Money Dispatch() Close()
n 1

Customer Name : String address : String CreditRating()

Corporate Customer ContactName : String CreditRating : String CreditLimit : Double Remaind() BillFormonth()

Personal Customer CreditCard#: Long integer

15. a) State Transition Diagram for Student Registration Process

Take Prospectus Read Prospectus Check Course [Cancel ]

Read Registration form

Check Registration form

Take Registration form

Reject Registration form [Cancel ] Tell Message

[Ok] Check Seats Available [Ok]

Fill Registration form

Submit Registration form

Update Seats Info

Give Identity Card

Take Identity Card

State Transition Diagram for Cancel Student Registration

Request Cancel Registration Request Registration Slip

Request Registration Slip Give Registration Slip

Give Registration Slip Give Money

Check Registration Slip Ok

Take Money

Cancel Registration

Update

Give Money

b)

Class Diagram For Student Registration Process

St u de nt

S_Name S_Age S_Sex S_Address S_Phoneno S_Qualification Create Registration()

R_Number R_Sname R_Sno Get Registration Info() Set Registration Info() *

1 C_Name

Se at

S_Noofseats S_Remseats Get Seats Info() Set Seats Info()

Create Registration() Get Seats Info() Set Seats Info() Get Registration Info() Set Registration Info()

Cl er k

R eg ist ra ti o n

1

16. Component Diagram for ATM

ATM.exe

Card Packet

Cash Disposer

ATM.Scores

Card Packet

Cash Disposer

ATM.Scores

17. Component Diagram for Employee Management System

Employee.exe

Employee Details

Salary Details

Attendance Details

Employee Details

Salary Details

Attendance Details

18. Component Diagram for Library Management System

Library.exe

Registration Packet

Book Details

Transaction Details

Employee Details

Registration Packet

Book Details

Transaction Details

Employee Details

19. Component Diagram for Order Processing Application

Order.exe

Customer Details

Dispatch Details

Order Details

Goods Details

Customer Details

Dispatch Details

Order Details

Goods Details

20. Component Diagram for Student Registration Process

Student.exe

Student Details

Registration Details

Seat Details

Student Details

Registration Details

Seat Details

Sign up to vote on this title
UsefulNot useful

Master Your Semester with Scribd & The New York Times

Special offer: Get 4 months of Scribd and The New York Times for just $1.87 per week!

Master Your Semester with a Special Offer from Scribd & The New York Times