You are on page 1of 8

School of Engineering and

Computing
Division of Computing and
Creative Technology

SESSION:

2008/2009

DIET:

First

Software Modelling, Analysis and Design 1


Level: 2
Module Code: COMU220
Module Leader: Peter Harper

DATE:

January 2009

DURATION:

2 Hours

CANDIDATES SHOULD ATTEMPT THREE QUESTIONS


All Questions Carry Equal Marks

PLEASE READ THE QUESTIONS CAREFULLY


MATERIALS TO
BE SUPPLIED/ALLOWED:
Question Paper (Supplied)
Blank Examination Script (Supplied)

Students for whom English is not their first language are permitted to use a
Standard English/Foreign Language dictionary, e.g. French/English,
English/French. Please ensure that the dictionary does not contain any notes or
other materials and note that electronic dictionaries are not permissible.

Question 1
a) Explain what a CRC card is. Your answer should describe how
they are used, and for what purpose.
(6 marks)
b) Using an example of each, describe the difference between an
Aggregation and a Composition association in class
diagrams.
(6 marks)
c) A sports organisation wants to computerise some of its
systems. Draw an initial class diagram for a system that
represents the scenario given below.
A rugby team is made up of 15 players. There are two types
of players forwards and backs. A team belongs to a league,
and the league organises matches. Each match needs a
referee.
(Note: You are not required to show attributes and operations)
(10 marks)
d) What is an object diagram, and what might it be used for?
(3 marks)

Question 2
a) Describe what an actor represents in Use Case Diagrams.
(4 marks)
b) Explain the use of the following types of relationship and
association in Use Case Diagrams:
(i)
(ii)
(iii)

include (Uses) relationship


extend relationship
generalisation association
(3, 3, 3 marks)

c) Draw a Use Case Diagram for the following system:


An hotel organises residential conferences. Their current
system is outlined below.
The hotels conference manager arranges for speakers, makes
up the conference programme and, along with the hotel chef,
plans the catering. When the conference manager arranges
for a speaker to come, a room is reserved for him/her.
Conference participants (people wishing to attend the
conference) register on line. There are two ways that they can
register either individually, or as a group. Whenever
participants register, either individually or as a group, rooms
are reserved for them. When registering a participant may
choose to have a translation service.
(12 marks)

Question 3
a)

Produce a State Machine Diagram for the following scenario:


In a washing machines program there is an object
representing the washing cycle. The cycle has a number of
states.
When the machine is switched on it is in the filling state. Once
10 litres of water have gone into the drum, the heating state
begins. When the temperature reaches the wash
temperature the state becomes washing and soap is added.
After 30 minutes of washing the drain and spin state of the
cycle is entered. This lasts for 4 minutes, after which the state
changes to rinse. During this state, which takes 15 minutes,
the drum is again filled with water and the clothes are rinsed.
The drain and spin state of the cycle is then re-entered, which
again lasts 4 minutes. After the 4 minutes is up the washing
cycle ends. Obviously it only ends if this is the 2nd time that
the drain and spin state is exited.
For safety reasons, an uneven load during the washing state
ends the cycle.
(12 marks)

b)

Explain the use of substates in State machine Diagrams.


(3 marks)

c)

Briefly describe any two software development


methodologies, and explain when each is likely to be used.
(10 marks)

Question 4
a)

In a model-based software development, a number of UML


diagrams are likely to be used. Discuss when in the process any
three UML diagrams might be used.
For each of the three diagrams you choose, explain
what it models
when in the process it will be used
what its relations, if any, are to your other chosen diagrams.
(12 marks)

b)

The sequence diagram over the page is of a library systems


borrowing process. It shows the interactions that take place when
a borrower comes to the counter with books that she/he wants to
take out on loan. To take out a book the person has to be a
member of the library. Anyone can join the library.
(i)

Describe the sequence of events in the diagram.


(3 marks)
(ii) Redraw the diagram showing how would you amend it to
deal with more than 1 book being borrowed? Briefly
explain what you have done.*
(4 marks)
(iii) Further amend your diagram to deal with a new library
member. Again, briefly explain what you have done.*
(6 marks)
*Note: in (ii) & (iii) above there is no need to spend a lot of time
redrawing the original diagram. So long as it is clear how you are going to
add to, or change, the diagram that is all you will be marked on.

sd book loan

aLibControl

aMember

aBook

Enter Member

getMemberDetail
s

displayMemberDetails

Enter Book No
getBookDetails

createLoan

updateStatus

updateStatus

aLoan

Question 5
a)
Describe the role of Activity Diagrams in the development of a
system.
(5 marks)
b)

Describe, using appropriate examples, the use of the following


in Activity Diagrams:
(i) decision and merge nodes
(ii) fork and join nodes
(10 marks)

c)

Below are the Main Flow of Events and Alternative Flow of


Events rows from a use case form. The use case is the
processing of a customer order by a system for a trade paint
wholesaler. This use case is triggered when a customer
phones to place an order. Only registered customers can make
phone orders.
Draw an Activity Diagram for the use case.
marks)

Main Flow
of
Events

Alternative
flow
Of Events

(10

1. Agent enters customer number.


2. System validates customer is on system. [A1]
3. Agent enters customers order details and preferred delivery date.
[A2]
4. System displays proposed delivery date. [A3]
5. System displays details and proposed delivery date. [A4] [A5]
6. Customer agrees
7. End
A1. Customer number rejected. Display message and return to step 1
or end use case.
A2. Ordered item not recognised. Display message and return to step
3 or end use case.
A3. Delivery date not acceptable. Display message and return to step
3 or end use case.
A4. Order exceeds credit limit. Display message and return to step 3
or end use case.
A5. Customer wants to change order. Return to step 3.
At any time use case can be cancelled.

END OF EXAM PAPER

You might also like