UNIVERSITY EXAMINATIONS: 2018/2019
EXAMINATION FOR THE DEGREE OF MASTER OF SCIENCE IN
INFORMATION SYSTEMS MANAGEMENT/ MASTER OF SCIENCE IN
MISM 5104/ MDA 5104: OBJECT ORIENTED TECHNOLOGIES
DATE: AUGUST 2019 TIME: 2 HOURS
INSTRUCTIONS: Answer Question One & ANY OTHER TWO questions.
(a) Describe two advantages of using object technologies to develop information systems
(b) Briefly explain the following terms as used of object oriented technologies.
Write a sample java code to illustrate implementation of term (8 Marks)
(i) Constructor method
(c) Consider the following online shopping scenario
Customer confirms items in shopping cart. Customer provides payment and address to process
sale. System validates payment and responds by confirming order, and provides order number
that Customer can use to check on order number that customer can use to check on order status.
System will send customer a copy of order details by email.
Use the following techniques to specify the above shopping scenario
(i) Table format of Use case (5 Marks)
(ii) Draw a class diagram (5 Marks)
(a) Discuss the relationship between object oriented analyses (OOA), object oriented design
(OOD) and object oriented programming (OOP). Use a practical example to illustrate each
process (3 Marks)
(b) Describe the elements of an object. Draw a well labelled UML diagram to illustrate each
element (3 Marks)
(c ) Explain the difference between composition and Aggregation Describe a practical example for
each concept and draw a well labelled UML diagram for illustration (3 Marks)
(d) Suppose you are designing a data entry system. The primary actor is the data entry worker,
who will enter information into a user interface to create and update records for the client. During
a Requirements Workshop, a typical data entry worker is interviewed and describes the following
“The System displays a screen that allows the User to enter an invoice number. The System
accesses the sales record and displays the current information in the record to the User,
highlighting fields that are related to payment. The User types information into the fields and
submits the updated record. The System updates the sales record”.
(e) Draw a well labelled sequence diagram to specify the above process (6 Marks)
(a) Write short notes on the following techniques in the context of object oriented technologies
Draw a diagram to illustrate technique
(i) User stories (3 Marks)
(ii) Interfaces (3 Marks)
(b) Consider the following scenario
Owners of a partments fill in information forms about the rental units they have available(e.g.
Location, number of bedrooms,monthly rent), which are entered into a database.
Students can search through this database via the web to find apartment s that meet their
needs(e.g. A two bedroom apartment for $800 or less per month within ½ mile of campus)
They then contact the apartment owners directly to see the apartment and possibly rent it.
Apartment owners call the service to delete their listing when they have rented their apartment(s)
(b) Create a use case diagram for the above system (5 Marks)
(c) Draw class-Responsibility- Collaboration Cards (CRC) for the above cards (4 Marks)
(a) State and explain five types of relationships between classes. Draw UML diagram to illustrate
each relationship (5 Marks)
(b) Consider the following ATM Scenario
A session is started when a customer inserts an ATM card into the card reader slot of the machine.
The ATM pulls the card into the machine and reads it. If the reader cannot read the card due to
improper insertion or a damaged stripe, the card is ejected, an error screen is displayed, and the
session is aborted. The customer is asked to enter his/her PIN, and is then allowed to perform one
or more transactions, choosing from a menu of possible types of transaction in each case.
After each transaction, the customer is asked whether he/she would like to perform another. When
the customer is through performing transactions, the card is ejected from the machine and the
session ends. If a transaction is aborted due to too many invalid PIN entries, the session is also
aborted, with the card being retained in the machine. The customer may abort the session by
pressing the Cancel key when entering a PIN or choosing a transaction type.
(i) Draw a class diagram to represent the above ATM withdraw scenario (5 Marks)
(ii) Write a java program that implements one of the classes in the class diagram in (i) using object
oriented programming methodology (5 Marks)