Solved Quiz 2 for Processes for Object-Oriented Software Development | COP 4331, Quizzes of Computer Science

Material Type: Quiz; Class: Processes for Object-Oriented Software Development; Subject: Computer Programming; University: University of Central Florida; Term: Fall 2008;

Typology: Quizzes

Pre 2010

Uploaded on 02/24/2010

koofers-user-kza
koofers-user-kza 🇺🇸

10 documents

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
COP4331 and EEL4884 Quiz 2 Fall 2008
(90 Pts)
1. ( 24 pts) Model each of the following object or class relationships in UML. Do this by
filling in the blank with the name of the most appropriate relationship that applies you’re
your knowledge of software engineering augmented with common every-day experience;
the relationship should be predominate in your experience, it does not have to be true 100%
of the time. Then give a simple UML class diagram to illustrating the relationship. For each
part choose one of the following: composition, aggregation, affiliation, association,
generalization or specialization, instance-of. For example, the relationship between Quiz
and Question would be modeled as composition illustrated in the diagram below. Be sure to
include the multiplicity annotation and any roles that might apply.
(2 pts relation) (2 pts diagram)
(a) UML Diagram to Activity Diagram generalization-specialization
(b) Use Case Diagram to Actor Composition
(c) Room to Furniture Aggregation
(d) Parking Garage to Vehicle Aggregation
(e) Business to Employee Composition (give partial credit for association)
(f) University to Student Association (give partial credit for composition)
Page 1
pf3
pf4

Partial preview of the text

Download Solved Quiz 2 for Processes for Object-Oriented Software Development | COP 4331 and more Quizzes Computer Science in PDF only on Docsity!

(90 Pts)

  1. ( 24 pts) Model each of the following object or class relationships in UML. Do this by filling in the blank with the name of the most appropriate relationship that applies you’re your knowledge of software engineering augmented with common every-day experience; the relationship should be predominate in your experience, it does not have to be true 100% of the time. Then give a simple UML class diagram to illustrating the relationship. For each part choose one of the following: composition, aggregation, affiliation, association, generalization or specialization, instance-of. For example, the relationship between Quiz and Question would be modeled as composition illustrated in the diagram below. Be sure to include the multiplicity annotation and any roles that might apply. (2 pts relation) (2 pts diagram) (a) UML Diagram to Activity Diagram generalization-specialization (b) Use Case Diagram to Actor Composition (c) Room to Furniture Aggregation (d) Parking Garage to Vehicle Aggregation (e) Business to Employee Composition (give partial credit for association) (f) University to Student Association (give partial credit for composition)

(90 Pts)

  1. (24 pts) Consider the implementation of the following UML Class diagram following the conventions of the OO Data Format and Design Protocol. Give the C++ code for each Class interface declaration and include only a default constructor and the methods necessary to implement the insertion and extraction operators overloaded for instances of the identified classes. 2pts correct syntax 3 pts visibility attributes 4 pts Extract, Insert, Get, Put 2 pts friends 2 pts constructors 3 pts exception clauses 2pts correct syntax (subclass ) 2 pts Extract, Insert, Get, Put 4 pts constructors

(90 Pts) Interface/Control Layer

  • Name of virtual world (1)
  • Composition relation with Agent subclasses and Passive classes (4) Agent Layer
  • Inheritance relation between subclasses and Agent (3)
  • Association relation between Agent subclasses and EventMgr (3 ) Message Layer
  • Players message (2)
  • Three Message subclasses (3)
  • Relationship between Message subclasses and Passive classes (2) Passive Layer
  • Court (1)
  • Basket (1)
  • Ball (1)
  • Relationships among the above (3)