Skip to Main Content
Visual C++ 2008: How to Program, Second Edition
book

Visual C++ 2008: How to Program, Second Edition

by P. J. Deitel, H. M. Deitel, D. T. Quirk
December 2007
Intermediate to advanced content levelIntermediate to advanced
1552 pages
46h 20m
English
Pearson
Content preview from Visual C++ 2008: How to Program, Second Edition

Appendix F. ATM Case Study Code

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 1, 38, 10 and 14. The implementation comprises 877 lines of C++ code. We consider the classes in the order in which we identified them in Section 4.13:

  • ATM

  • Screen

  • Keypad

  • CashDispenser

  • DepositSlot

  • Account

  • BankDatabase

  • Transaction

  • BalanceInquiry

  • Withdrawal

  • Deposit

We apply the guidelines discussed in Section 10.12 and Section 14.11 to code these classes based on how we modeled them in the UML class diagrams of Fig. 14.28 and Fig. 14.29. To develop the definitions of classes’ member functions, we refer to the activity diagrams presented ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton's Beginning Visual C++ 2012

Ivor Horton

Publisher Resources

ISBN: 9780136085652Purchase book