0% found this document useful (1 vote)
286 views10 pages

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

The document describes a scenario for Thandiwe Video Store (TVS) and its video rental activities. [1] TVS catalogs and enters new videos into a database before putting them on the shelf. [2] Customers must have a valid membership card to rent videos and can rent up to three videos at a time, with the system checking for overdue videos. [3] The store manager prints a daily report of overdue videos and contacts customers if videos are more than two days overdue or damaged.

Uploaded by

tembo saidi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
286 views10 pages

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

The document describes a scenario for Thandiwe Video Store (TVS) and its video rental activities. [1] TVS catalogs and enters new videos into a database before putting them on the shelf. [2] Customers must have a valid membership card to rent videos and can rent up to three videos at a time, with the system checking for overdue videos. [3] The store manager prints a daily report of overdue videos and contacts customers if videos are more than two days overdue or damaged.

Uploaded by

tembo saidi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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