Information Technology Reference
In-Depth Information
improved interviews. At the end of the analysis phase, a final requirements
specification or requirements specification statement is formed into the specifi-
cation document, a document that formally expresses all of the requirements that
make up the system.
6.9 Exercises
1. Does Object-oriented Analysis preclude any kind of software implementation?
2. Describe how, in the face of changing problems, practices and people, analysis
has evolved, or should have evolved. Include a consideration of the appro-
priateness of the terms that have been used for the job.
3. Consider a file system with GUI. The following objects were identified from a
use case describing how to copy a file from a floppy disk to a hard disk: FILE,
ICON, Trashcan, Folder, Disk, Pointer. Start the analysis process on this.
4. Assuming the same file system before, consider a scenario consisting of
selecting a File on a floppy, dragging it to Folder and releasing the mouse.
Identify attributes and look for irrelevant objects.
5. Depict the above scenario through UML diagrams (any model described in the
chapter can be used).
6. Consider a traffic light system at a four-way crossroads. Assume the simplest
algorithm for cycling through the lights. Identify objects, states, attributes and
draw a statechart diagram describing them.
7. You are asked to design a group scheduler. The software allows you to arrange
meetings among individuals or groups and to reserve a limited number of
conference rooms. Implement the object-oriented analysis phase on this.
8. Perform OOA on the following requirements for a checkers game:
• Checkers is played by two people, one with light and one with dark pieces.
• Pieces move diagonally and opponents are captured by jumping over them.
• A Piece can only move and capture forward.
• When a piece makes it to the other side of the board, it becomes a king and
can move diagonally in any direction as far as it wants.
• Capturing is mandatory. A piece (or king) that is captured is removed from
the board.
• The player who has no pieces left or cannot move anymore has lost the
game.
9. Complete the OOA phase for a Tic-Tac-Toe Computer Game using the fol-
lowing description. Tic-Tac-Toe is a 2 player game played on a 3 9 3 board.
Players alternate placing a marker in one of the squares on the board. If a
player gets 3 of their markers in a row, they win. If all squares are full, and
neither player has 3 in a row, the game is a draw. Statistics should be kept for
each player on total games won, lost and drawn. Traditional Markers are X
and O.
Search WWH ::




Custom Search