Sams Teach Yourself C++ in 21 Days

(singke) #1
Object-Oriented Analysis and Design 369

11



  1. In regard to analysis, what is an actor?

  2. What is a use case?

  3. Which of the following is true?
    a. A cat is a specialized form of animal.
    b. Animal is a specialized form of cat and dog.


Exercises ........................................................................................................



  1. A computer system is made up of a number of pieces. These include a keyboard, a
    mouse, a monitor, and a CPU. Draw a composition diagram to illustrate the rela-
    tionship between the computer and its pieces. Hint:This is an aggregation.

  2. Suppose you had to simulate the intersection of Massachusetts Avenue and Vassar
    Street—two typical two-lane roads, with traffic lights and crosswalks. The purpose
    of the simulation is to determine whether the timing of the traffic signal allows for
    a smooth flow of traffic.
    What kinds of objects should be modeled in the simulation? What would the
    classes be for the simulation?

  3. You are asked to design a group scheduler. The software enables you to arrange
    meetings among individuals or groups and to reserve a limited number of confer-
    ence rooms. Identify the principal subsystems.

  4. Design and show the interfaces to the classes in the room reservation portion of the
    program discussed in Exercise 3.

Free download pdf