Consider the object model in Figure 5-32 in the book (adapted from [Jackson, 1995]): Given your knowledge of the Gregorian calendar, list all the problems with this model. Modify it to correct each of them.

What will be an ideal response?


The problems with Figure 5-32 are related with the multiplicity of the associations. Weeks can straddle month

boundaries. Moreover, the multiplicity on other associations can be tightened up: years are always composed of

exactly twelve months, months do not straddle year boundaries, and weeks are always composed of seven days.

Figure 5-4 depicts a possible revised model for this exercise.



Computer Science & Information Technology

You might also like to view...

A(n) ________ is a built-in program that performs a task such as finding the sum of a series of numbers

Fill in the blank(s) with correct word

Computer Science & Information Technology

A network administrator has been tasked to deploy a new WAP in the lobby where there is no power outlet. Which of the following options would allow the network administrator to ensure the WAP is deployed correctly?

A. QoS B. Install 802.11n WAP C. PoE D. Parabolic antenna

Computer Science & Information Technology

How do Webcastsdiffer from Webinars?

a. Webcasts are led by a presenter, whereas Webinars broadcast audio or video. b. Webcasts allow limited one-way communication, whereas Webinars allow some level of two-way communication. c. Webcasts allow users to create and edit Web page content, whereas Webinars limit users to the browsing of Web pages. d. Webcasts allow questions to be directed to the presenter, whereas Webinars allow questions to be emailed or faxed to the presenter.

Computer Science & Information Technology

When updating a control from a non-GUI thread, you must ________.

a) launch a separate thread to perform the update b) notify the GUI thread that you’ll be updating it in another thread c) ensure that the update doesn’t corrupt the GUI thread’s activities. d) schedule that update to be performed by the GUI thread

Computer Science & Information Technology