Docsity

Software Development Bachelor's Degree Exam - Systems Modelling, Exams of Control Systems Analysis

Toggle sidebar
bg1
Cork Institute of Technology
Bachelor of Science (Honours) in Software Development – Stage 2
(KSDEV_8_Y2)
Summer 2008
Systems Modelling
(Time: 3 Hours)
Instructions: Answer five questions Examiners: Dr. M. O Cinneide
Mr. M. Donnelly
Ms. M. Davin
Q1.
(a) Give an overview of the main aims of modelling software. [2]
(b) Explain what is meant by the Object model. [2]
(c) Differentiate between an object and a class. [2]
(d) Illustrate how a class and an object are illustrated in UML. [2]
(e) Explain what is meant by each of the following properties that apply to objects.
(i) Identity
(ii) State
(iii) Behaviour. [3]
(f) What is meant by the following:
• Class responsibility and
• Class Collaborator? [2]
(g) Use the following description to answer the questions below.
A warehouse wants to keep track of its parts and how they are used. Parts have a part
number name and cost. Parts can be used in the manufacture of assemblies and assemblies
can have a hierarchical structure. Several parts may have the same part number, name and
cost. To avoid replication each part will be described in a catalogue entry.
(i) Draw a class diagram to illustrate the concepts above and their relationships. [4]
(ii) Explain how the cost of an assembly object could be realised using a collaboration
between objects from the classes you have identified. [3]
pf3
pf4
pf5

Partial preview of the text

Download Software Development Bachelor's Degree Exam - Systems Modelling and more Exams Control Systems Analysis in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Science (Honours) in Software Development – Stage 2

(KSDEV_8_Y2)

Summer 2008

Systems Modelling

(Time: 3 Hours)

Instructions: Answer five questions Examiners:^ Dr. M. O Cinneide Mr. M. Donnelly Ms. M. Davin Q1.

(a) Give an overview of the main aims of modelling software. [2]

(b) Explain what is meant by the Object model. [2]

(c) Differentiate between an object and a class. [2]

(d) Illustrate how a class and an object are illustrated in UML. [2]

(e) Explain what is meant by each of the following properties that apply to objects.

(i) Identity

(ii) State

(iii) Behaviour. [3]

(f) What is meant by the following:

  • Class responsibility and
  • Class Collaborator? [2]

(g) Use the following description to answer the questions below.

A warehouse wants to keep track of its parts and how they are used. Parts have a part number name and cost. Parts can be used in the manufacture of assemblies and assemblies can have a hierarchical structure. Several parts may have the same part number, name and cost. To avoid replication each part will be described in a catalogue entry.

(i) Draw a class diagram to illustrate the concepts above and their relationships. [4]

(ii) Explain how the cost of an assembly object could be realised using a collaboration between objects from the classes you have identified. [3]

Q

(a) Differentiate between a class diagram and an object diagram. [2]

(b) How the object does oriented concept of message passing help to encapsulate the

implementation of an object including its data? [2]

(c) What is meant by the each of the following object oriented terms [4]

i Encapsulation

ii Abstraction

iii Dynamic binding

iv Polymorphism (d) Read the following specification and answer the questions below

A library holds the following books among many others: ‘History of World War 2’, ‘The adventures of Robin Hood’ and two copies of ‘Harry potter and the philosopher’s stone’. Joe and Martina are registered uses of the library. Joe currently has the ‘Adventures of Robin Hood’ out on loan, and Martina has borrowed the ‘History of world war 2’ and one

copy of ‘Harry potter and the philosopher’s stone’.

i. Draw an object diagram representing the objects and relationships implied by the following description of certain aspects of a library system [4] ii. One of the operations the library system must provide is the ability to send reminder letters to those borrowers who have overdue books on loan. Extend your model of the library system to store the date by which a borrowed book is to be returned, considering carefully which object should store this piece of data. Show on the diagram the messages that would be generated in response to an initial request to the library to send Reminders [6] iii. Draw a class diagram which would allow for the object diagram you produced in part (ii) to be supported. [2]

Q4.

(a) Suppose that an environmental monitoring station contains three sensors, namely a thermometer, a rain gauge and a humidity reader. In addition, there is an output device, known as a printer, on which readings from these three sensors are shown. Readings are taken and transcribed onto the printer every five minutes. This process is known as “taking a checkpoint”. (i) Draw an object diagram showing a possible plausible configuration for these objects, and include on the diagram the messages that might be generated in the system every time a checkpoint is taken. Assume that a checkpoint is initiated by a message form a timer object sent at five-minute intervals to the monitoring station. [4] (ii) Draw a class diagram summarizing the structure of the monitoring station. [2]

(b) Draw a class diagram to model the following situations.

(i) An Airline flight takes place between two airports. It is necessary to differentiate between the two airports as one is the airport from which the flight takes off from and the other is the destination airport. [3]

(ii) A student can register in any number of course sections and a course section can have many students. A student undertakes continuous assessment work and a final exam for each course section. It is a requirement that the results for each student in each course section are recorded [3] (iii) (^) Clients have advertising campaigns and a record is kept of each campaign. Each campaign includes one or more adverts. One member of staff manages each campaign. Other staff work on a campaign. Each Staff member is allocated a grade which may change over time. The start and finish dates that a staff member is on a particular grade needs to be recorded [3]

(c) What is meant by each of the following and how is it modelled in UML [5]

(i) Abstract Class (ii) Entity Class (iii) Class scoped attribute (iv) Attribute Visibility (v) Boundary class

Q

(a) Read the following requirement specification and answer questions below.

A Video Club wants to automate its activities. It keeps two types of movies, educational and entertainment. For each movie the following information is kept: title, director, and duration. Additionally, ‘subject area’ (Arts, Science, etc.) is kept for educational movies and ‘movie type’ (Music, Dance, Comedy etc.) is kept for entertainment movies. A video is also given a certificate (e.g. GA- General Audience). Each video is assigned a category depending on its popularity and how recently it was released. Each category will have its own rental cost per night , loan period as well as the fine incurred if the loaned video copy becomes overdue. The video club has several copies of each movie. Each video copy is labelled with the movie title, unique serial number and date of purchase. Copies are shelved by serial number order.

Members of the club may keep five video copies on loan at a time. Members will not be allowed to borrow further videotapes if they have an overdue copy. Each member is assigned a membership number on joining the club. The following details are held on each member name, address, Date of Birth. The main requirements of the system are:

1. Search for a movie – members (or club secretary) should be able to get details (serial number, status) of movie copies available on the shelf or are out on loan (due date of return, if it is on loan). Users may search for a movie on its title (or a part of its title) or director. There may be more than one movie that satisfies search criteria. The user then selects the required movie from _the search results.

  1. Enter a loan – The club secretary should be able to decide on a loan request immediately. Upon_ receiving a member number the system should be able to notify the secretary if the member is not _entitled for a further loan.
  2. Return a loan - When a video is returned the system should determine if there is a fine due and_ the amount of the fine _Additionally, the system administrator should be provided with the following functionality:
  3. Add/Remove/Edit a member detail.
  4. Add/Remove a movie
  5. Add/Remove a copy_

(i) Prepare a ‘use case’ model for all the specifications given in the case study. Write a brief use case description only for the second main requirement. (Enter a loan) [8]

(ii) The ‘class diagram’ in UML may be used to design the conceptual model of a system. Draw a conceptual model for the given case study. Your model should include attributes and relationships (association with multiplicity and generalization-specialization) between the classes. [6] (iii) Draw a communication or a sequence diagram for the second main requirement in the given case study. Note this diagram should be consistent with the class diagram created in the previous part. [6]

Q

You want to organize the various bookshelves in your room. Your room currently contains 2 bookshelves, but you are considering purchasing several more in the near future. Each bookshelf is positioned along one of the four walls in the room, and a maximum of two bookshelves can be placed along any one wall. You’re kind of quirky, and you name each of your bookshelves. On each bookshelf are several items; items are either books or toys. Toys have a name, manufacturer’s name and a purchase date. Books have a title, author and publication date. Your bookshelf organization system needs to do the following things:

  1. Place bookshelves along the various walls in the room, respecting the max of two bookshelves per wall.
  2. Add items to and remove items from each bookshelf.
  3. Print out the contents of the entire room, or a single bookshelf. ƒ For a printout of the room, you must print out the name of each bookshelf, which wall it is on and a description of each item on it. ƒ For printing out details of a single bookshelf, you need to print all of the above information but only for a single bookshelf. ƒ For item details, print out the Name of the book or toy and the manufacturer’s name in the case of a toy or the Author’s name in case of a book.

(a) Draw a class diagram to model the above situation. Include at least one interface in your diagram. Be as specific as possible using UML notation. Include attributes and operations. [8]

(b) Draw a sequence diagram corresponding to your class diagram for the situation where the user wants to print out their room as described above. Include an actor in your diagram, but this actor is allowed to send any message to any object he or she wishes. There are no boundary objects required. [8]

(c) Draw a collaboration diagram that is equivalent to the sequence diagram you drew in part B. [4]