Consider a simple
auto-teller machine (ATM). The machine accepts customer requests and
dispenses cash, display and prints out mini statements, and provides the
bank manager with a daily transaction report. User interacts with the
ATM through a display unit and a keypad. An ATM user must have a valid
ATM card and PIN before he or she can access the services of the ATM.
Cash withdraws must be less than or equal to the user's balance. Apart
from providing services to its users, the ATM is also required to update
the customer account databases each time there is a cash withdrawal. The
banker manager uses a staff PIN to access the system for transaction
reports.
1. Construct a two-level data-flow
diagram of the ATM showing the services that are provided.
2. Identify possible objects and
construct a class diagram.
3. Draw sequence diagrams for the
following two use cases:
a. A user withdraws cash.
b. A bank manager prints a daily transaction report.