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.
actions
attributes
states
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.