Software Engineering Case Study Self-Review Exercises


6.1

State whether the following statement is true or false, and if false, explain why: State machine diagrams model structural aspects of a system.

6.2

An activity diagram models the _______________ that an object performs and the order in which it performs them.

  1. actions

  2. attributes

  3. states

  4. state transitions

6.3

Based on the requirements document, create an activity diagram for a deposit transaction.

Answers to Software Engineering Case Study Self-Review Exercises

6.1

False. State machine diagrams model some of the behavior of a system.

6.2

a.

6.3

Figure 6.26 presents an activity diagram for a deposit transaction. The diagram models the actions that occur after the user chooses the deposit option from the main menu and before the ATM returns the user to the main menu. Recall that part of receiving a deposit amount from the user involves converting an integer number of cents to a dollar amount. Also recall that crediting an account by the deposit amount involves increasing only the totalBalance attribute of the user's Account object. The bank updates the availableBalance attribute of the user's Account object only after confirming the amount of cash in the deposit envelope and after the enclosed checks clear this occurs independently of the ATM system.

Figure 6.26. Activity diagram for a Deposit TRansaction.




Visual BasicR 2005 for Programmers. DeitelR Developer Series
Visual Basic 2005 for Programmers (2nd Edition)
ISBN: 013225140X
EAN: 2147483647
Year: 2004
Pages: 435

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net