The Copperbelt University School of Mathematics and Natural Sciences Department of Computer Science

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

THE COPPERBELT UNIVERSITY

SCHOOL OF MATHEMATICS AND NATURAL SCIENCES


DEPARTMENT OF COMPUTER SCIENCE

CS432 OBJECT ORIENTED SOFTWARE ENGINEERING

DEFERRED TEST –MAY 6, 2017

TIME ALLOWED: 2 HRS

Read the story below and answer questions that follow:

A Thandiwe Video Store (TVS) runs a series of fairly standard video stores. Before a video can
be put on the shelf, it must be cataloged and entered into the video database. Every customer
must have a valid TVS customer card in order to rent a video. Customers rent videos for three
days at a time. Every time a customer rents a video, the system must ensure that he or she does
not have any overdue videos. If so, the overdue videos must be returned and an overdue fee paid
before customer can rent more videos. Likewise, if the customer has returned overdue videos but
has not paid the overdue fee, the fee must be paid before new videos can be rented. Every
morning, the store manager prints a report that lists overdue videos. If a video is two or more
days overdue, the manager calls the customer to remind him or her to return the video. If a video
is returned in damaged condition, the manager removes it from the video database and may
sometimes charge the customer.

QUESTIONS:

1. Identify the main activities that are undertaken at TVS. [6 marks]


2. Draw a use case diagram to represent the activities at Thandiwe’s video store [8 marks]
OR
3. Draw a class diagram for the system at TVS [8 marks]
OR THIS

4. Draw a Activity diagram for one of the use cases identified in the scenario above
[6
marks]
TWO VERSIONS
5. Develop an sequence diagram for one of the use cases identified in the scenario above
[8
marks]
Example 4: Video Rental

6. Draw an object/ design class model for your solution in Q3. [6 marks]

7. Define Polymophism. [2 marks]


a. Give a good example of polymosphism [3 marks]

b. and a bad ‘use’ of polymorphism using the TVS [3marks]

Total Marks = 50

Extra For revision-State Chart diagram

You might also like