IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

57
5. Use Case Diagram for Employee Management System C L E R K Get Employee Details Get Attendance Details Get Salary Details Calculate Salary Pay Salary Update Salary Details

description

IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Transcript of IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Page 1: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

5. Use Case Diagram for Employee Management System

CLERK

Get Employee Details

Get Attendance Details

Get Salary Details

Calculate Salary

Pay Salary

Update Salary Details

Page 2: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

1. Use Case Diagram for ATM

ATM

USER

Take Card

Login

Withdraw

Give Card

Balance Checking

Take Money

Generate Report

Update Account Info

Give Balance Slip

Check Login

Check Account

Page 3: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

2. Use Case Diagram for Library Management

Create Registration

Cancel Registration

Record Book Info

Give Book

Pay Money

Take Book

Generate Report

Receive Money

Maintain Attendance

Calculate Salaries

Maintain General

Expenses

Update Registration

info

Check Book Present

Update Book Info

Login

PERSON

Manager

Clerk

Page 4: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

3. Use Case Diagram for Ordering Processing

SALESMAN

Take Order

Check Good Present or Not()

Give Order Details to Company

Give Goods to Customer

Take Payment

Give Payment to Company

Give Bill to Customer

Take Goods from Company

CUSTOMER

Browse catalog & Select items

Call sales person

Give shipping info

Give payment info

Get confirmation#

Page 5: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

4. Use Case Diagram for Student Registration

STUDENT

Get Prospectus

Read Prospectus

Get Registration Form

Read Registration Form

Fill Registration form

Submit Registration

Form

Take Identity Card

Login

Update Registration Details

Give Identity Card

Check Seats Available

Validate Registration form

CLER K

View Seats Info

Generate Report

Page 6: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

6. a) Sequence Diagrams for ATMSequence Diagram for Withdraw

Customer ATM Machine Pin Info Account Info Transaction

1: Insert Card ()

3: Enter Pin ()

Request for Pin ()2:

4:Get pin Info ()

5:Check pin Info ()

10:Get Account Info ()

11:Check Required

Balance

Enter Transaction6:

7:Withdraw

8:Ask to enter Amount

9:Enter Amount

Update ()12:

13:Dispense Money ()

14:Collect Money ()

15: Store Transaction Details ()

16:Get Transaction Info ()

17:Get pin Info ()

18:Give Slip

19:Collect Slip

20:Reset Card

21:Collect Card

Page 7: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Invalid PIN Code

Customer ATM Machine Pin Info Account Info

1:Insert Card

2:Get Balance Card Info ()

3:

Check Which Bank Card

Request Pin ()4:

5:Enter Pin ()

6:Get Pin Info ()

7:Check Pin ()

8:

Display Invalid Password

Page 8: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Invalid Amount

Customer ATM Machine Pin Info Bard Card Info

Account Info

1:Insert Card

2:Get Bank Info ()

3:Check Which

Bank Card

6:Get Pin Info ()

7:Check Pin Info

()

8:Request

Transaction

9:Withdraw

13:Check Required

Amount

12:Get Account Info ()

10:Request Amount

11:Enter

Amount

4: Request Pin ()

5: Enter Pin ()

14:Display Message

Page 9: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Balance Check

Customer ATM Bank

Card Info Pin CodeInfo

Transaction Details

AccountInfo

1: Insert Card

2:Check Bank

Card ()

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

5:Get Pin Info ()

6:Check Pin

Code ()

7: Request Transaction

Type ()

8: Enter Transaction

Type ()

9: Request AccountType ()

10: Enter Account Type ()

11Get Account Info ()

12Generate

Slip ()13: Give Slip ()

14: Take Slip ()

17: Take card ()

16: Give card ()

Update ()15:

Page 10: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Invalid Bank Card

Customer ATM Bank Card Info

1. Insert Card ()

2. Get Bank Card Info ()

3. Check Bank Card ()

Display Message ()4.

Page 11: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Changing Password

Customer ATM Bank

Card Info Pin CodeInfo

Transaction Details

AccountInfo

1: Insert Card

2:Check Bank

Card ()

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

5:Get Pin Info ()

6:Check Pin

Code ()

7: Request Transaction

Type ()

8: Enter Change

Password ()

9: Request New Password ()

10: Enter New Password ()

12Generate

Slip ()13: Give Slip ()

14: Take Slip ()

18: Take Card ()

17: Give Card ()

Update ()15:

11: Display Message ()

Page 12: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Collaboration Diagrams for ATM

Collaboration Diagram for Withdraw

A T

M

M

ach

in

e

20: Generate Slip

Bank Card2: Get Bank Card Info

3: Check Bank Card

Pin Code Info6: Get Pin Info

7: Check Pin Code

Account Info14: Get Account Info

15: Check Amount

Transaction17: Update

16. Update

USER

Page 13: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Invalid PIN Code

A T

M

M

ach

in

e

Bank Card2: Get Bank Card Info

3: Check Bank Card

Pin Code Info6: Get Pin Info

7: Check Pin CodeUSER

Page 14: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration D iagram for Invalid Amount

A T

M

M

ach

in

e

Bank Card2: Get Bank Card Info

3: Check Bank Card

Pin Code Info6: Get Pin Info

7: Check Pin Code

Account Info14: Get Account Info

7: Check Pin Code

15: Check Amount

USER

Page 15: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration D iagram for Balance Check

A T

M

M

ach

in

e

Bank Card2: Get Bank Card Info

3: Check Bank Card

Pin Code Info6: Get Pin Info

7: Check Pin Code

Account Info12: Get Account Info

13: Generate Report

Transaction Info14: Update

USER

Page 16: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Invalid Bank Card

A T

M

M

ach

in

e

Bank Card2: Get Bank Card Info

3: Check Bank Card

USER

Page 17: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Changing Password

A T

M

M

ach

in

e

Bank Card2: Get Bank Card Info

3: Check Bank Card

Pin Code Info6: Get Pin Info

7: Check Pin Code

14: Generate Report

Pin Info13: Update

USER

Page 18: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

7 a) Sequence Diagram for Employee Management System

Clerk Attendance Employee

Details Employee

Salary Details

1:Get Employee 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

8:Give Salary ()

Total Salary ()9:

10:Update ()

Page 19: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Collaboration Diagram for Employee Management System

CLERK

EMPLOYEE

8: Give Salary()

9: Take Salary()

Em

ployeeA

ttendanceS

alary

2: Get Attendance Info()

10: Update()

3: Check for Leaves()

Page 20: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

8 a) Sequence Diagrams for Library Management System

Sequence Diagram for Taking Book

Person Clerk Registration Info

Receiving Details Book Info

2:Get Book Info ()

3: Check Book

Present

6:

Get Registration

Info ()

7: Check Registration

8:Get Receiving Details ()

9:Check Person

take any book or

not

4:Reply to Person

Give Registration

Identity

5:

10:Update Book Info ()

11:Update Receiving Details ()

12:Give Book

13:Take Book

14:Give

Registration

15:Take

Registration

1:Ask for Book ()

Page 21: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Giving Book

Person Clerk Registration Info

Receiving Details Book Info

1:Give

Registration and Book () 2:

Get Registration

Info ()

3: Check Registration

4:Check Receiving Details ()

5:Check Return

Date ()

6:Calculate Penalty ()

7:Give

Penalty Slip

8:Give Money

9:Update Receiving Details ()

10:Update Book Info ()

11:Give

Registration Slip ()

12:Take

Registration Slip ()

Page 22: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Create Library Registration

Person Library Clerk Registration

1: Take Registration Form()

2: Read Registration Form()

3: Fill Registration Form()

4: Give Registration Form()

5: Check Registration Form()

7: Update()

8: Give Registration Slip()

6: Give Money()

7: Take Money()

9: Take Registration Slip()

Page 23: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Cancel Library Registration

Person Clerk Registration

4: Check Registration Slip ()

6: Update ()7: Give Money ()

8: Take Money ()

Request for Cancel Registration ()

1:

Request for Registration Slip ()

2:

Give Registration Slip ()

3:

5: Cancel Registration ()

Page 24: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Collaboration Diagrams for Library Management System

Collaboration Diagram for Taking Book

Book

Info

Regist

ration Info

Trans

action D

etails

PERSON

CLERK

Page 25: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Giving Book

CLERK

PERSON

Registration Info

Trans

action D

etails

Book

Info

Page 26: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Create Library Registration

Regist

ration

PERSON

CLERK

Library

2: Read R

egistration Form

()

3: Fil l R

egi st rati on Form

()

Page 27: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Cancel Library Registration

PERSON

Regist

ration

CLERK

Page 28: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

9 a) Sequence Diagrams for Order Processing Application

Customer Sales Man Goods Company

1: Call Salesman()

2: Request for Call()

3: Tell Good Details()

4: Get Good Info()

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()

Dispatch

19: Update

Page 29: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Collaboration Diagram for Order Processing Application

CUSTOMER

SALESMAN

Good

Dispatch

Co

mpa

ny

Page 30: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

10.a) Sequence Diagram for Student Registration Process

Give Identity Card

Student College Clerk Seat

1:Get Prospectus ()

2:Read Prospectus ()

3:Get Registration Form ()

Fill Registration Form ()

Add Required Forms ()

4:

5:

6:Submit Registration Form ()

7:Validate Form ()

8:9:

Get Seets Info ()

Check Seats Available

10:Update

Update

Registration

11:

12:

Page 31: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Sequence Diagram for Cancel Student Registration

Person Clerk Registration

4: Check Registration Slip ()

6: Update ()

8: Give Money ()

9: Take Money ()

Request for Cancel Registration ()

1:

Request for Registration Slip ()

2:

Give Registration Slip ()

3:

5: Cancel Registration ()

Seat

7: Update()

Page 32: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Collaboration Diagram for Student Registration Process

STUDENT

COLLEGE

Cle

rk

Seats Info

Page 33: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

Collaboration Diagram for Cancel Student Registration

PERSON

Regist

ration

CLERK

Seat

Page 34: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

11 a) State Transition Diagrams for ATM

State Transition Diagram for Withdraw

Validate Account Type

Request Amount

Transaction Proceed

Dispense Money

Default Desktop

Check Bank Card

Request Pin

Insert Card

Validate Pin

Request Transaction Type

Request Account Type

Enter Pin

Ok

Withdraw

Enter Account Type

Enter Amount Type

Ok

Generate Slip

Reset Card

Take Money

Take Slip

Can

cel

Page 35: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Invalid Pin

Default Desktop

Check Bank Card

Request Pin

Validate Pin

Enter Pin

Insert Card

Page 36: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Invalid Amount

Default Desktop

Check Bank Card

Insert Card

Request Amount

Transaction Proceed

Enter Amount

Request Pin

Validate Pin

Request Transaction Type

Request Account Type

Enter Pin

Enter Transaction Type

Enter Account Type

Can

cel

Ok

Page 37: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Check Balance

Default Desktop

Check Bank Card

Insert Card

Request Amount

Transaction Proceed

Enter Amount

Request Pin

Validate Pin

Request Transaction Type

Request Account Type

Enter Pin

Enter Transaction Type

Enter Account Type

Can

cel

Ok

Page 38: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Invalid Bank Card

Default Desktop

Validate Card

Display Message

Cancel

Insert Card

Page 39: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Changing Password

Enter Pin

Default Desktop

Check Bank Card

Insert Card

Generate Slip

Reset Card

Take Slip

Request Pin

Validate Pin

Enter Change Password

Display Message

Enter Password

Can

cel

Ok

Page 40: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Class Diagram for ATM

ATM Machine

Person

PincodeWithdraw AmountAccount Type

Insert Card ()Enter Pin ()Enter Transaction Type ()Enter AmountEnter Account Type ()Take Card ()

Take Money

PincodeWithdraw AmountAccount TypeTransactions 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 ReportGive Balance Report ()

Account

Account NumberAccount NameBalance Withdraw Amount

Show Account Details ()Show Account Type ()Show Balance ()Set Balance ()Withdraw ()Deposit ()

Bank Card Show Balance Card

Details ()

Transaction Details

Transaction Id

Pincode Info

PinCode

Set Pincode ()Show Pincode ()

Set Transactions Details

Page 41: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

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

Page 42: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Class Diagram for Employee Management System

Salary

S_Eno

Get Salary Info()Set Salary Info()

Employee

E_NameE_AgeE_SexE_AddressE_NumberE_PhonenoE_DesignationE_QualificationE_SalaryE_Section

Take Salary()

AttendanceA_Section

A_Number

Get Attendance Info()Set Attendance Info()

1

1

Page 43: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

13. a) State Transition Diagram for Library Management System

State Transition Diagram for Taking Book From Library

Person

Ask For Book

Tell Details

Give Registration

Slip

Receive Book

Request to Take Book

Request Registration

Request Book Details

Clerk

do: Request Book Details

Check Book Info

Request for Registration Slip

Check Registration Info

Ok

Till Book Details

Give Registration

Slip

Request Transaction Details

Check Transaction Details

Update Transaction Details

Give Transaction Details

Ok

Update Book DetailsGive Book &

Registration Slip

Cancel

Tell Message

Cancel

Tell Message

Cancel

Tell Message

Page 44: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Giving Book

Give Registration Slip & Book

Pay Penalty

Take Registration

Slip

Give Registration

Slip

Check Registration & Calculate Penalty

Get Registration Info

Check Registration Slip

Check Transaction Details

Check Return Date

Calculate Penalty

Update Transaction Details & Book

Details

Give Penalty Slip

Give Registration Slip

Ok

Page 45: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Create Library Registration

Person

Take Registration

Form ()

Read Registration

Form ()

Fill Registration Form ()

Submit Registration

Form ()

Receiving Registration

Slip

Clerk

Take Registration

Form ()

Check Registration

Form ()

Read Registration

Info ()

Update Registration

Info ()

Generate Registration

Slip ()

Give Registration

Slip

Ok

Cancel

Reject Registration

form ()

Page 46: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Cancel Library Registration

Request Cancel Registration

Give Registration Slip

Take Money

Request Registration Slip

Give Money

Request Registration Slip

Check Registration Slip

Cancel Registration

Give Registration Slip

Ok

Update

Give Money

Page 47: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Class Diagrams for Library Management Application Person

P_NameP_AgeP_SexP_AddressP_RegnoP_Phoneno

Create Registration()Give Book()Take Book()Cancel Registration()

RegistrationR_Number

R_PNameR_Paddress

Get Registration Info()Set Registration Info()

Book

B_NumberB_NameB_CostB_PublisherB_AuthorB_SubjectB_Noofcopies

Get Book Info()Set Book Info()

Transaction T_Number

T_Time

Get Transaction Info()Set Transaction Info()

1

0..*

0..*

Page 48: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

14 a) State Transition Diagram for Order Processing Application.

Page 49: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Class Diagram For Order Processing

Order

DateRecived : DateIsPrepaid : BooleanNumber : StringPrice : Money

Dispatch()Close()

Customer

Name : Stringaddress : String

CreditRating()

Corporate Customer

ContactName : StringCreditRating : StringCreditLimit : Double

Remaind()BillFormonth()

Personal Customer

CreditCard#: Long integer

n 1

Page 50: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

15. a) State Transition Diagram for Student Registration Process

Read Prospectus

Take Registration

form

Fill Registration form

Check Course

Take Prospectus

Submit Registration

form

Take Identity Card

Check Seats Available

Tell Message

Reject Registration

form

Read Registration

form

Update Seats Info

Give Identity Card

Check Registration

form[Cancel

]

[Ok]

[Cancel] [Ok]

Page 51: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

State Transition Diagram for Cancel Student Registration

Request Cancel Registration

Give Registration Slip

Take Money

Request Registration Slip

Give Money

Request Registration Slip

Check Registration Slip

Cancel Registration

Give Registration Slip

Ok

Update

Give Money

Page 52: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

b) Class Diagram For Student Registration Process

Student

S_NameS_AgeS_SexS_AddressS_PhonenoS_Qualification

Create Registration()

RegistrationR_Number

R_SnameR_SnoGet Registration Info()Set Registration Info()

1

1

Clerk

C_Name

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

Seat

S_NoofseatsS_Remseats

Get Seats Info()Set Seats Info()

*

Page 53: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

16. Component Diagram for ATM

ATM.exe

Cash DisposerCard Packet

Card Packet

ATM.Scores

ATM.Scores

Cash Disposer

Page 54: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

17. Component Diagram for Employee Management System

Employee.exe

Salary DetailsEmployee Details

Employee Details

Attendance Details

Attendance Details

Salary Details

Page 55: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

18. Component Diagram for Library Management System

Library.exe

Book DetailsRegistration Packet

Registration Packet

Transaction Details

Transaction Details

Book Details

Employee Details

Employee Details

Page 56: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

19. Component Diagram for Order Processing Application

Customer Details

Order.exe

Dispatch DetailsCustomer Details

Order Details

Order Details

Dispatch Details

Goods Details

Goods Details

Page 57: IGNOU MCA 3rd Semster Object Oriented Analysis & Design Lab Record Solved MCSL 036

20. Component Diagram for Student Registration Process

Student.exe

Registration DetailsStudent Details

Student Details

Seat Details

Seat Details

Registration Details