E. ATM Case Study Code

E.1 ATM Case Study Implementation

This appendix contains the complete working implementation of the ATM system that we designed in the Software Engineering Case Study sections found at the ends of Chapters 17, 9 and 13 . The implementation comprises 877 lines of C++ code. We consider the classes in the order in which we identified them in Section 3.11:

•     ATM

•     Screen

•     Keypad

•     CashDispenser

•     DepositSlot

•     Account

•     BankDatabase

•     Transaction

•     BalanceInquiry

•     Withdrawal

•     Deposit

We apply the guidelines discussed in Section 9.11 and Section 13.10 to code these classes based on how we modeled them in the UML class diagrams of Fig. 13.28 and Fig. 13.29. To develop ...

Get C++ for Programmers: Deitel now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.