Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Nizam College: BCA III Year I Semester

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 49

NIZAM COLLEGE

(AUTONOMOUS)

OBJECT ORIENTED SYSTEM DEVELOPMENT


Lab Record

BCA III Year I Semester

OSMANIA UNIVERSITY
HYDERABAD
2016-2017
NIZAM COLLEGE
(Autonomous)
Basheerbagh, Hyderabad.
Ph. No: 040-23233317

CERTIFICATE

Department of Computer Science

This is to certify that Mr/Ms..………………………………


Bearing H.T.No……………………………..student of BCA
III Year I Sem has completed OOSD Lab Record
during the year 2016-2017.

Internal Examiner External Examiner


SNo PROGRAMME Page No
1. Draw Use case Diagram & Activity diagram with swim lane for the front
office system in a 5- star hotel described below.Front office of any hotel is
responsible for all room reservations, room allocations and final settlement
of bills. Any company or person can reserve rooms for their future stay.
They have to indicate from what date to what date they need the room.
They also have to indicate how many rooms are required. Sometimes the
reservations could be cancelled or dates or number of rooms changed. For
reservation, cancellation or modification of rooms, customer receives an
acknowledgement from the hotel.

a) Use case diagram for front office system in a 5- star hotel. 1

b)Activity Diagram For Front Office System In A 5-Star Hotel 2

2. Front office of any hotel is responsible for all room reservations, room
allocations and final settlement of bills. Any company or person can
reserve rooms for their future stay. They have to indicate from what date
to what date they need the room. They also have to indicate how many
rooms are required. Sometimes the reservations could be cancelled or
dates or number of rooms changed. For reservation, cancellation or
modification of rooms, customer receives an acknowledgement from the
hotel. Draw sequence diagram for reserve room scenario, also draw the
class diagram.

a) Sequence Diagram For Room Reservation In A 5-Star Hotel. 3

b) Class Diagram For Room Reservation In A 5-Star Hotel 4


3. A major distributor of office supplies has a set of criteria for preparing
bills. When the customer places the order one of the sales staff prepares
the order and writes the bill, if there is an insufficient quantity of items on
hand, the back order is set up for missing items. The available items are
shipped and bill is prepared. The cost is billed for the back order items
when they are shipped. Wholesale customers are eligible for discount if
they purchase minimum of 100 items. Retail customers are not eligible for
any discounts irrespective of the number of items ordered. All retail
customers pay sales tax, wholesale customers don’t pay any tax provided
they have state tax exemption. All bills are mailed to customers. Draw use
case diagram and also draw sequence diagram for one of the scenario.
5
a) Use Case Diagram For A Major Distributor Of Office Supplies.
6
b) Sequence Diagram For A Major Distributor Of Office Supplies For The
i
Scenario

4. A major distributor of office supplies has a set of criteria for preparing


bills. When the customer places the order one of the sales staff prepares
the order and writes the bill, if there is an insufficient quantity of items on
hand, the back order is set up for missing items. The available items are
shipped and bill is prepared. The cost is billed for the back order items
when they are shipped. Wholesale customers are eligible for discount if
they purchase minimum of 100 items. Retail customers are not eligible for
any discounts irrespective of the number of items ordered. All retail
customers pay sales tax, wholesale customers don’t pay any tax provided
they have state tax exemption. All bills are mailed to customers. Draw
activity diagram with swim lanes and draw class diagram.
a) Class Diagram For A Major Distributor Of Office Supplies 7
b) Activity Diagram For A Major Distributor Of Office Supplies.
8
5. A century system is the statistics provider organization of all the first class
cricket matches conducted across the world round the year. They compile
all the statistics of the players in terms of matches played, venues, country,
match type (test/one-day). For each match, statistics is compiled for each
player i.e., runs scored in each innings, wickets and catchers taken, run
outs, number of fours and sixes hit etc., The Company wants to develop a
computer application to compile these statistics. Identify classes using CRC
and draw the class diagram with the necessary relationships. Also specify
the multiplicities, roles etc. Draw the use case diagram with statistician as
an actor.

a) Identify Classes Using CRC ( Class Responsibility and Collaborations) 9


And Draw The Class Diagram With The Necessary Relationships.

b) Usecase Diagram Statistician As An Actor 10

6. A laboratory has several chemists who work on one or more projects.


Chemists (Empid, Name, Phone_no) also may use certain kinds of
Equipments (Serial_no, cost) on each project (Projectid, start_date). The
organization wishes to record assign- date i.e., the date when the given
equipment item was assigned to a particular Chemist working on a
specified project, as well as total number of hours the chemist has used the
equipment for the project. The chemist must be assigned to at least one
project and one equipment item. Draw the use case diagram and class

ii
diagram.
a) Usecase Diagram For A Laboratory. 11

b) Class Diagram For A Laboratory 12

7. Mega super market has three checkout counters. In order to improve the
checkout process a PC has been set up at each of these counters along with
the printer. Each item in the super market is packed & each packet carries
on it a price tag on which are printed its item code and price. Each
customer picks out the desired packet from the shelves place them in the
standard shopping basket supplied by the super market and carries the
basket to one of the checkout counters. The counter operator takes out
each of the packets from the basket, keys in the 12 digit item code. The
amount is collected from the customer and a bill is printed and issued to
the customer. Identify the classes and draw class diagram with suitable
relationships, multiplicities and roles. Also draw the state diagram for one
of the item object.
a) Class diagram for mega super market. 13
b) State chart diagram for mega super market. 14
8. SAM’s Couriers Limited intends to computerize the recruitment process.
The advertisements for a particular post appear on their website. The
candidates are called for interview based on the eligibility criteria which
varies from post to post. Information regarding the eligibility and
vacancies is maintained in a database. The candidate is selected based on
written test and interview. Once selected, the candidate is under probation
for one year. In this period the candidate is not eligible for any special
leaves and benefits. After completion of the probation period the manager
evaluates the candidate’s performance and will be given an appointment
letter with a unique employee id. Draw use case diagram for the given
scenario. Also draw the sequence diagram for one of the scenarios.
a) Draw usecase diagram for sam’s couriers limited 15
b) Sequence diagram for sam’s courier ltd. For one of the scenario
16
9. SAM’s Couriers Limited intends to computerize the recruitment process.
The advertisements for a particular post appear on their website. The
candidates are called for interview based on the eligibility criteria which
varies from post to post. Information regarding the eligibility and
vacancies is maintained in a database. The candidate is selected based on
written test and interview. Once selected, the candidate is under probation
for one year. In this period the candidate is not eligible for any special

iii
leaves and benefits. After completion of the probation period the manager
evaluates the candidate’s performance and will be given an appointment
letter with a unique employee id. Draw activity diagram with class
diagram. Draw the complete class diagram with necessary relationships,
multiplicities, roles etc.

a) Class diagram for sam’s courier ltd.


17
b) Activity diagram for sam’s courier ltd.
18
10. In a Business school, once a student is admitted, he/she will be assigned a
counsellor. The student has to report to the counsellor & fill his/her
personal details in the counselling file. Student’s queries/problems are
addressed by the counsellor, which is also recorded in the counselling files.
The Principal of the school monitors the process of counselling i.e. the
problems reported by the student and actions taken by the counsellor. As
the strength of the school has increased, it is not possible for the principal
to monitor the counselling process manually. Draw the use case diagram
and activity diagram with swim lanes.

a) use case diagram for a business school 19

b) activity diagrams with swim lanes 20

11. In a Business school, once a student is admitted, he/she will be assigned a


counsellor. The student has to report to the counsellor & fill his/her
personal details in the counselling file. Student’s queries/problems are
addressed by the counsellor, which is also recorded in the counselling files.
The Principal of the school monitors the process of counselling i.e. the
problems reported by the student and actions taken by the counsellor. As
the strength of the school has increased, it is not possible for the principal
to monitor the counselling process manually. Draw the sequence diagram
for all the scenarios. Also specify how sequence diagrams are converted to
collaboration diagrams
a) sequence diagram for a business school
21
b) Procedure to convert sequence diagram to collaboration diagram
22
12. OTOS’s pharmacy is the distributor of various pharmaceuticals products.
They have a huge network of customers. The registered customers can only
book orders for the specified product. If the specified product s available
the required quantity is checked against the quantity on hand (QOH). If

iv
the required quantity is less than QOH a deliver challan is prepared. After
the delivery of the product an Invoice is prepared by accountant which
contains the cost of ordered items, deductions if any (in case of damaged or
lost goods) and previous outstanding balance. Then the invoice is sent to
the customer. Draw the use case diagram with use case specifications.
Draw the sequence diagram for prepare invoice scenario.
a) draw the usecase diagram with usecase specifications 23

b) sequence diagram for preparing invoice scenario 24

13. OTOS’s pharmacy is the distributor of various pharmaceuticals products.


They have a huge network of customers. The registered customers can only
book orders for the specified product. If the specified product s available
the required quantity is checked against the quantity on hand (QOH). If
the required quantity is less than QOH a deliver challan is prepared. After
the delivery of the product an Invoice is prepared by accountant which
contains the cost of ordered items, deductions if any (in case of damaged or
lost goods) and previous outstanding balance. Then the invoice is sent to
the customer. Draw activity diagram with swim lanes & draw state
diagram of the product object.

a) activity diagram with a swim lanes 25

b) state diagram of the product object 26

14. Global group requires a system to be developed for maintenance of leaves


in their organization. There are different types of leaves: Casual leaves,
Medical leaves, Earned leaves and special leaves. These leaves vary from
employee to employee. If the employee is regular he can avail all types of
leaves. An adhoc employee can only avail casual leaves. The medical and
earned leaves can be credited in the employees account. The maximum
limit of the credit is 240. Further if an employee has availed all the leaves
his salary may be deducted. Draw activity diagram and model a sequence
diagram for one of the scenario
a) draw activity diagram global group system 27-28

b) draw sequence diagram for a scenario 29

15. Global group requires a system to be developed for maintenance of leaves


in their organization. There are different types of leaves: Casual leaves,
Medical leaves, Earned leaves and special leaves. These leaves vary from

v
employee to employee. If the employee is regular he can avail all types of
leaves. An ad-hoc employee can only avail casual leaves. The medical and
earned leaves can be credited in the employees account. The maximum
limit of the credit is 240. Further if an employee has availed all the leaves
his salary may be deducted. Draw use case diagram and also draw the class
diagram for the given scenario

a) draw class diagram for global group system. 30


b) draw usecase diagram 31

16. OU’s Central library issues books to the staff and students. Students can
avail 3 books and staff can avail max of 5 books. The books are issued to
the students for a period of one month. Thereafter a fine of Rs. 1/- for each
day is charged. The faculty members don’t pay any fine. However they
have to return the book at the end of semester. The Library receives the
requisition from various departments to new books. Once it is approved
the order is placed to the various vendors. University gives an order of the
books to a particular vendor based on the competitive prices they offer.
Model a Use case diagram and draw the sequence diagrams for all
scenarios of a student actor.
a) draw usecase diagram ou central library.
32
b)sequence diagram for all the scenarios
33

You have been hired to design a system for small health care organization.
17. The clinic consists of several examining rooms and few rooms for short
term critical care patients. Core staffs of seven physicians is supplemented
by internists from a local teaching hospital. Patient’s medical data is stored
in the central database. Patients first sign in at the front desk. Clerk checks
the billing records, prints a summary status sheet and obtains file number
from the system. The clerk then selects the examination room for the
patient based on the case. After waiting for the physician, the clerk moves
the data packet and the patient to the examination room. A nurse records
basic medical data (weight, B.P etc). The physician makes additional notes
to both the medical and billing data and generally writes the prescription
order which is given to the patient and recorded on the charts. When the
patient leaves, the clerk enters the new billing data into the system (if any).
The new billing data is forwarded to appropriate insurance company.
Identify the classes using CRC and draw the class diagrams with

vi
appropriate relationships, multiplicities etc.

a) identify the classes using crc( cyclic redundancy check ) and draw the
class diagrams with appropriate relationships , multiplicities etc.
34

18 An organization is interested in developing new student registration


system. The system allows students to register for courses and view reports
cards from PC attached to the campus LAN as well over the internet.
Professors will be able to access the system to sign up to teach courses as
well as record grades of students. The registrar’s office will continue to
maintain course information through another system. At the beginning of
each semester, students may request a course catalogue, containing list of
course offerings for that semester. Information about each course, such as
professor, dept and prerequisites will be included. Course offerings will
have maximum of 10 students and minimum of 3 students. Once
registration process is completed for a student the registration system
sends information to the billing system so that student can be billed for
semester. Professors must be able to access the online system to indicate
which courses thy will be teaching. Design a use case model and draw the
activity diagram with swim lanes.

a) design a usecase model for a student registration system 35

b) draw activity diagram for a student registration system 36


19 An organization is interested in developing new student registration
system. The system allows students to register for courses and view reports
cards from PC attached to the campus LAN as well over the internet.
Professors will be able to access the system to sign up to teach courses as
well as record grades of students. The registrar’s office will continue to
maintain course information through another system. At the beginning of
each semester, students may request a course catalogue, containing list of
course offerings for that semester. Information about each course, such as
professor, dept and prerequisites will be included. Course offerings will
have maximum of 10 students and minimum of 3 students. Once
registration process is completed for a student the registration system
sends information to the billing system so that student can be billed for
semester. Professors must be able to access the online system to indicate
which courses thy will be teaching. Draw class diagram and model
sequence diagrams for any two scenarios.

a) draw class diagrams for student registration system 37

vii
b) sequence diagram for the scenario 38

20 The H.I. Top School of Business operates international business programs


in 10 locations throughout Europe. The school had its first class
of 9000 graduates in 1965. The school keeps track of each graduate
student. In order to maintain strong ties to its alumni, the school holds
various events around the world. The school needs to keep track of which
graduates have attended which events. For an attendance by a graduate at
an event, a comment is recorded about information. A report is produced
showing the latest information about that graduate & the information
learned during the past two years from that graduate from all contacts &
events the graduates attended. Since the strength of the student is
increasing day by day. Draw use case diagram and the activity diagram for
the given scenario.
39
a) draw a usecase diagram for h.i top school of business
40
b) draw activity diagram for h.i top school of business

viii
1.a) USE CASE DIAGRAM FOR FRONT OFFICE SYSTEM IN A 5- STAR HOTEL.

adm itted

personaldetails

C ounsellor
S tudent

quieries&problem

solutions for problem s and


quieries

P rincipal

m onitor counselling

1
1.b) ACTIVITY DIAGRAM FOR FRONT OFFICE SYSTEM IN A 5-STAR HOTEL.

STU D EN T P R IN C IP A L C O U N S E L LO R

adim itted

assigned
counsellor

R eportto
counsellor

fills personal
details

(N O ) any quieries
studentasks for
Y ES quieries & problem s

quieries &
problem s soluions forthe
quieries & problem s

solutions forquieries&
problem s
records the quieries
and solutions

m onitors the
counselli...

2
2.a) SEQUENCE DIAGRAM FOR ROOM RESERVATION IN A 5-STAR HOTEL.

cust : customer recep :


receptionist
enquiry

provides response

reserves room(date,no:,type)

checks availability

reservation ack

payment

receipt

3
2.b) CLASS DIAGRAM FOR ROOM RESERVATION IN A 5-STAR HOTEL

customer
cust ph no Receptionist
cust name Reserved
Recpid rooms
address Requests Update
recpname
Room no
enquiry() 1..* +1..3 dates
Allocateroom() +1..1 1..*
roomreservation()
receivebill()
pay() update()
response()
cancel() +1..1
modify() +1..1

Availability

Billing(Accounts
+1..n bill
)
rooms bill.no
rooms available cust name
no.of rooms bill date
+1..1
room types bill amount

facility() calculations()

4
3.a ) USE CASE DIAGRAM FOR A MAJOR DISTRIBUTOR OF OFFICE SUPPLIES.

place order

prepare order and write bill


Customer

delivery Sales staff


Retail customer
wholesale
customer

sales tax

discounts

5
3.b) SEQUENCE DIAGRAM FOR A MAJOR DISTRIBUTOR OF OFFICE SUPPLIES FOR
THE SCENARIO WHEN RETAIL CUSTOMER IS PLACED ORDER.

cust : customer ss : sales staff invt : inventory ship : shipping bill : billing dis : discounts
system
place order

check customer type(wholesaler)

checks inventory

if available

updates

if purchase>=100

avail discount

packed & dispatched

delivers

mails bill

6
4.a ) CLASS DIAGRAM FOR A MAJOR DISTRIBUTOR OF OFFICE SUPPLIES

warehouse
customer sales staff id
cust id empip name
cust name purchase empname check location
cust type dept capacity
cust address +1..10 +1..2 types of products
* *
receiveorder()
paybill() check() check availability()
placeorder() receivebill() packed()
1 +1 dispatch()
ship

bill
bill *
bill.no
wholesale bill.date shipping
cust retail cust mode of payment mode of shipping
cid number of items
*
discount() paytax() cid
receive bill()
generates tax() deliver()

7
4.b) ACTIVITY DIAGRAM FOR A MAJOR DISTRIBUTOR OF OFFICE SUPPLIES.

Customer Sales staff Billing

Place order Process order

Cust type Pay tax

Retail
wholesale
Items >100 no discount

No
Yes

Give discount

Prepare bill

Check

all items
available
Yes

Receive items Ship No

Check order Amount


adjustment

Receive bill Mail bill

8
5.a ) IDENTIFY CLASSES USING CRC ( CLASS RESPONSIBILITY AND
COLLABORATIONS) AND DRAW THE CLASS DIAGRAM WITH THE NECESSARY
RELATIONSHIPS.

Class Name: Player Responsibilities Class Name: Matches Responsibilities

playerId getDetailsOfPlayers matchId maintainDetails


playerName OfMatches
countryName countryName1 Played
matchesPlayed Collaborations countryName2 Collaborations
matchVenue
P_Match WinnerCountry
matchType P_Match
runScored1
runScored2

Class Name: P_Match Responsibilities

playerIdKeeps Track Of
matched matches by players
runsScored
wicketsTaken Collaborations
catchesTaken
runOuts Player
noOfFour Match
noOfSix

Collaborations

9
5.b)USECASE DIAGRAM STATISTICIAN AS AN ACTOR

Matches played

Compute statistics
Player
Statistician

10
6.a) USECASE DIAGRAM FOR A LABORATORY.

assign project

assign equipment
Laboratory Chemist

record project details

11
6.b) CLASS DIAGRAM FOR A LABORATORY.

Laboratory
Name Chemist
Location Empid
No.of Employees Assign Empname
Types of Project Phone.no
+1..n
Equipment availabilty * 1..* current project id

Record() Handling project()


Assigndate() *
+1..n
use
1
Record assign +1..n
1 Equipment
Project complete
Eqp no
Piroject id Eqp name
Project name eqp type
Start date Quantity
1
End date Cost
No.of employes
assignequipment()
Assign project()

+1..n

12
7.a ) CLASSS DIAGRAM FOR MEGA SUPER MARKET.

Customer Items
Cust id Pick Item id
Phone no Item name
+1..n +1..n Price
Purchase() quantity
Paybill()

+1..n

Sale
Sales Staff
Emp id
Emp name
+1..3
Prepare bill()
Collect bill()

13
7.b) STATECHART DIAGRAM FOR MEGA SUPER MARKET

ITEM

PACKED

CARRYIN
G

BILLED

8.a ) DRAW USECASE DELIVERE DIAGRAM


FOR SAM’S COURIERS D LIMITED

14
8.b) SEQUENCE DIAGRAM FOR SAM’s COURIER Ltd. FOR ONE OF THE SCENARIO

mngr : manager newspaper : candi : test : test grade : grades perf :


advertsement candidate performance
advertise
views

apply

if eligible

updates test date

writes test

sends grade

checks grade

if passed

interview call

attends interview

if selected

issue probation letter

evaluvates performance

if satisfied

issue appointment letter

report to join

15
9.a ) CLASS DIAGRAM FOR SAM’S COURIER LTD.

+1..n job
+1..n

1..*
1..*
Candidate
Candidate interv iew Manager
Cid
Cname Cid Emp id
+1 interview +1 +1..n Emp name
Address Interv iew +1..n
Phone no Score +1 Dept
+1..n
Qualif ication Status
Selection()
Apply () selected Rejection()
Record() employee
+1..n
Interv iew
+1 selected Employ ee +1
No of Candidates selected
Attempt Interv iew Name Eid

+1
Attend interv iew() +1..n
+1..n employed
+1..n
Candidate test
Test
Cid Trainee
Test id
Tid write Tid
+1..n +1..n Test ty pe
Marks secured Tname
Date
Status Dept
No. of candidates
Stipend
Total marks
Attempt test() Job Location
pass
Status
+1..n

16
9.b) ACTIVITY DIAGRAM FOR SAM’S COURIER LTD.

Manager Candidates

Advertise job Apply for job


vaccancies

Check eligiblity &


vaccancy with DB

Selected Not selected

One year
probation

Evaluates
performance

Termination

Issues appointment letter &


permanant employee id

17
10.a ) USE CASE DIAGRAM FOR A BUSINESS SCHOOL

admits

assign counsellor
principal

monitors counselling files

student
report problems

solutions
counsellor

prepare record

18
10.b) ACTIVITY DIAGRAMS WITH SWIM LANES

Student Principal Counsellor

Admitted

Assign
counsellor

Reports to
counsellor

Fill personal
details

Required

Give queries& Solutions


problems

Record in
counselling files
Not required

Monitors
counselling files

19
11.a ) SEQUENCE DIAGRAM FOR A BUSINESS SCHOOL

prin : principal stud : student coun : records :


counsellor counselling files
admits

assign counsellor

reports
fills application

updates

reports problems

solutions

updates

submits records

monitors

20
11.b) COLLABORATION DIAGRAM FOR BUSINESS SCHOOL

1: Admits
Principal Student
2: Assign counsellor

4: Fills personal information 3: Reports

10: Monitors

9: Submits record 7: Solutions

6: Report problems

Record 8: Updates Counsell


or
5: Updates

21
12.a ) DRAW THE USECASE DIAGRAM WITH USECASE SPECIFICATIONS.

books order

pharmacist
customer
delivers order

prepares invoice
accountant

22
12.b) SEQUENCE DIAGRAM FOR PREPARING INVOICE SCENARIO

cust : customer pharm : item : items acc :


pharmacy accountant
orders

checks

if available

prepares delivery

updates

prepares invoice

submits invoice

delivers order

delivers invoice

23
13.a ) ACTIVITY DIAGRAM WITH ASWIMLANES

Customer Pharmacist Accountant

Books order

Receives order

QOH available

No
Yes
Delivery challan

Delivery Prepare invoice

Receives Product and


delivery challan

24
13.b) STATE DIAGAM OF THE PRODUCT OBJECT

BOOK
ORDER

CHECKED

INVOICE
prepared

DELIVERE
D

25
14.a.i ) DRAW ACTIVITY DIAGRAM GLOBAL GROUP SYSTEM: Request Leave for
Regular Employee

Request for
leave

Request medical
certificate & grant leave

Request for document & Grant leave


grant leave

Grant casual leave


or earned leave

26
14.a.ii ) DRAW ACTIVITY DIAGRAM GLOBAL GROUP SYSTEM: Payroll for Regular
Employee

Calculate pay

leaves <240

Yes No

Credit Deduct

Pay

27
14.b) DRAW SEQUENCE DIAGRAM FOR A SCENARIO

emp : mngr : manager leave : leave pr : payroll


employee records
request leave

checks emp type(regular)

checks records

if leave credit>240

updates

deducts salary

grants leave

28
15.a ) DRAW CLASS DIAGRAM FOR GLOBAL GROUP SYSTEM.

Manager
Employee
Emp id
Emp id Request leave
+1..n +1..n Emp name
Emp name
Dept
Dept
Grant leave()
Request leave()
Update Record()
+1..n +1
+1
receive Pay Roll calculate
+1 +1
Calculate() check
Salary()

+1..n
Emp-Leave
Regular Emp id Leaves
Basic pay Adhoc Type of leave Types of leave
Gross pay Consolidate pay Date Emp type
Deductions Available leaves
Avail leave() Used leaves Calculate()
Avail leave()
+1..n Calculate available leave()
Calculate used leaves()
Number of leaves per year()
+1..n

Avail

29
15.b) DRAW USECASE DIAGRAM

request casual leaves

request earned leaves


request casual leave

request medical leave

Adhoc employee

Regular employee request special leave


get salary

get credit

get salary

30
16.a ) DRAW USECASE DIAGRAM OU CENTRAL LIBRARY.

A/C holder

issue book

staff

return book
librarian

student

requisition of books
HOD

place order
vendor

31
16.b) SEQUENCE DIAGRAM FOR ALL THE SCNARIOS

17.a )
st : student book : books record : library lib : librarian
records
takes

request issue

card enquiry

submits card

checks record

updates

issue book

return book

checks

verify(date,fine)

if on time return

updates

return card

32
IDENTIFY THE CLASSES USING CRC(CLASS RESPONSIBILITY AND
COLLABORATIONS ) AND DRAW THE CLASS DIAGRAMS WITH APPROPRIATE
RELATIONSHIPS , MULTIPLICITIES ETC.

Class Name: Physician Responsibilities Class Name: Intern Responsibilities

physicianId maintainDetailsOf intern Id maintinDetailsOf


physicianName physician intern Name Interns
address college
dept Collaborations doctorId Collaborations
specialization Intern
Physician

Class Name: Room Responsibilities Class Name: Test Responsibilities

roomId maintainDetailsOf testId maintainDetailsof


roomName Rooms testName Tests
blockName testCharges
testconducted Collaborations Collaborations

Test

Class Name: Patient Responsibilities Class Name: PPTest Responsibilities

patientId maintainDetailsOf physicianId maitainDetailsof


patientName Patients patientId physician,patients
address testId andtests
admittedDate Collaborations testDate Collaborations
physicianID totalCharges
Physician Physicain
Patient
Test

33
18.a ) DESIGN A USECASE MODEL FOR A STUDENT REGISTRATION SYSTEM

register course

pay sem bill

Register system

maintain course record

Student

teaches

view report card

Professor

record grades

identify course

34
18.b) DRAW ACTIVITY DIAGRAM FOR A STUDENT REGISTRAION SYSYTEM

Student Registration system Professor

Registers

Request Sends
catalogue catalogue

Receives
catalogue

Apply course

Assisgn course Signin

Identify course

Attend class

Teaches

View report Record grades


cards

Prepare sem bill

Pay sem bill

35
19.a ) DRAW CLASS DIAGRAMS FOR STUDENT REGISTRATION SYSTEM

+1 Payment

Register +1..n
1 +1
Registration System
Student Professor
No. of students applied
Std id Name
No. of students admitted
Std name Department
Signin No. of professors
Course Study Signin ID
No. of courses
+1..n +1..n Sem Dates
Register() Record Grade() +1 +1..n
Duration
View report() Signup()
Req for catalogue() Signin()
Record()
Pay fee() Teaching()
+1..n

Billing
Std id
Course Std name
Cid
Cid Record Record Cname
Cname Fee amount
Record course details() Fee date
Course professor()
Course room no() Receive fee()
Issue receipt()
Record

Details

Semister
Course offered

Course Duration()

36
19.b) SEQUENCE DIAGRAM FOR THE SCENARIO

st : students reg sys : grade : grades bill sys : prof : professor


registration billsystem
registers

request catalogue

sends catalogue

apply course

assign course

sign in
identify course

attend class
teaches

record grades

view grades

updates student information

sends sem bill

pays bill

37
20.a ) DRAW A USECASE DIAGRAM FOR H.I TOP SCHOOL OF BUSINESS

collects alumini information

school conduct events

alumini

produce report

comment on events

38
20.b) DRAW ACTIVITY DIAGRAM FOR H.I TOP SCHOOL OF BUSINESS

School Student

Record alumini
info

Conduct events

Participate
events

Comments on
events

Record is
produced

39

You might also like