Advanced Systems Design with Java, UML and MDA

Appendix D: Exercise Solutions

All the solutions from the exercises in the book are given here. More exercise material is available from the accompaning website.

D.1 Solutions: Chapter 2

1.

Draw a use case diagram and class diagram to represent the following system.

  • Over the summer holiday, university students can book college hall accommodation online. They must specify their name, student number, course, year, and identify three college residences as their preferences.

  • The system makes an allocation of students to rooms before the start of term, trying, where possible, to allocate students to a room in one of their preferred halls.

2.

Is it possible to create an object of class A in Figure 2.25? Give an argument to justify your answer.

3.

In Figure 2.26, what is the maximum number of users that can be given aliases, given that each user has five aliases, and there are at most 100 user names available?

4.

Draw a class diagram for a conservatory design system: this system enables the planning of proposed conservatories in terms of their dimensions (height, width and depth, all in millimetres), style (Victorian or Contemporary), glass type (single or double glazed) and number of doors. Each conservatory will be constructed from a number of modules, which can be either door, window or wall modules, and which have a fixed height and width, and a style and glass type (as for conservatories).


Figure 2.25: Self association

Figure 2.26: Users and aliases

5.

Draw a class diagram for a conference centre booking...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Liquid Crystal Display (LCD) Modules
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.