Nizam College: BCA III Year I Semester
Nizam College: BCA III Year I Semester
Nizam College: BCA III Year I Semester
(AUTONOMOUS)
OSMANIA UNIVERSITY
HYDERABAD
2016-2017
NIZAM COLLEGE
(Autonomous)
Basheerbagh, Hyderabad.
Ph. No: 040-23233317
CERTIFICATE
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.
ii
diagram.
a) Usecase Diagram For A Laboratory. 11
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.
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
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
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
vii
b) sequence diagram for the scenario 38
viii
1.a) USE CASE DIAGRAM FOR FRONT OFFICE SYSTEM IN A 5- STAR HOTEL.
adm itted
personaldetails
C ounsellor
S tudent
quieries&problem
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.
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
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
checks inventory
if available
updates
if purchase>=100
avail discount
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.
Retail
wholesale
Items >100 no discount
No
Yes
Give discount
Prepare bill
Check
all items
available
Yes
8
5.a ) IDENTIFY CLASSES USING CRC ( CLASS RESPONSIBILITY AND
COLLABORATIONS) AND DRAW THE CLASS DIAGRAM WITH THE NECESSARY
RELATIONSHIPS.
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
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
+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
14
8.b) SEQUENCE DIAGRAM FOR SAM’s COURIER Ltd. FOR ONE OF THE SCENARIO
apply
if eligible
writes test
sends grade
checks grade
if passed
interview call
attends interview
if selected
evaluvates performance
if satisfied
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
One year
probation
Evaluates
performance
Termination
17
10.a ) USE CASE DIAGRAM FOR A BUSINESS SCHOOL
admits
assign counsellor
principal
student
report problems
solutions
counsellor
prepare record
18
10.b) ACTIVITY DIAGRAMS WITH SWIM LANES
Admitted
Assign
counsellor
Reports to
counsellor
Fill personal
details
Required
Record in
counselling files
Not required
Monitors
counselling files
19
11.a ) SEQUENCE DIAGRAM FOR A BUSINESS SCHOOL
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
10: Monitors
6: Report problems
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
checks
if available
prepares delivery
updates
prepares invoice
submits invoice
delivers order
delivers invoice
23
13.a ) ACTIVITY DIAGRAM WITH ASWIMLANES
Books order
Receives order
QOH available
No
Yes
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
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
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
Adhoc employee
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.
Test
33
18.a ) DESIGN A USECASE MODEL FOR A STUDENT REGISTRATION SYSTEM
register course
Register system
Student
teaches
Professor
record grades
identify course
34
18.b) DRAW ACTIVITY DIAGRAM FOR A STUDENT REGISTRAION SYSYTEM
Registers
Request Sends
catalogue catalogue
Receives
catalogue
Apply course
Identify course
Attend class
Teaches
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
request catalogue
sends catalogue
apply course
assign course
sign in
identify course
attend class
teaches
record grades
view grades
pays bill
37
20.a ) DRAW A USECASE DIAGRAM FOR H.I TOP SCHOOL OF BUSINESS
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