Preview

Atm Case Study

Good Essays
Open Document
Open Document
7238 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Atm Case Study
J
ATM Case Study Code
J.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 1–8 and 10. The implementation comprises 670 lines of Java code. We consider the classes in the order in which we identified them in Section 3.10:


ATM



Screen



Keypad



CashDispenser



DepositSlot



Account



BankDatabase



Transaction



BalanceInquiry



Withdrawal



Deposit

We apply the guidelines discussed in Section 8.19 and Section 10.9 to code these classes based on how we modeled them in the UML class diagrams of Fig. 10.21 and Fig. 10.22.
To develop the bodies of class methods, we refer to the activity diagrams presented in
Section 5.11 and the communication and sequence diagrams presented in Section 7.14.
Note that our ATM design does not specify all the program logic and may not specify all the attributes and operations required to complete the ATM implementation. This is a normal part of the object-oriented design process. As we implement the system, we com-

J.2 Class ATM

1465

plete the program logic and add attributes and behaviors as necessary to construct the
ATM system specified by the requirements document in Section 2.9.
We conclude the discussion by presenting a Java application (ATMCaseStudy) that starts the ATM and puts the other classes in the system in use. Recall that we are developing a first version of the ATM system that runs on a personal computer and uses the computer’s keyboard and monitor to approximate the ATM’s keypad and screen. We also only simulate the actions of the ATM’s cash dispenser and deposit slot. We attempt to implement the system, however, so that real hardware versions of these devices could be integrated without significant changes in the code.

J.2 Class ATM

Class ATM (Fig. J.1)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ACC 491 Week 1 DQ 2

    • 485 Words
    • 3 Pages

    In this document of ACC 491 Week 1 Discussion Question 2 you will find the next information:…

    • 485 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Bank Of America

    • 505 Words
    • 3 Pages

    2. List the sequential steps required in a typical ATM transaction, such as drawing out cash or transferring funds from one account to another, and briefly explain why each of these steps is necessary. Use a table to organize your response and do not overlook steps in the process that are performed either by the ATM system or by information systems housed within the Bank’s centralized data center.…

    • 505 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Student55

    • 428 Words
    • 2 Pages

    2. List the sequential steps required in a typical ATM transaction, such as drawing out cash or transferring funds from one account to another, and briefly explain why each of these steps is necessary. Use a table to organize your response and do not overlook steps in the process that are performed either by the ATM system or by information systems housed within the Bank’s centralized data center.…

    • 428 Words
    • 2 Pages
    Satisfactory Essays
  • Better Essays

    Use Cases

    • 1184 Words
    • 5 Pages

    In this use case the basic flow of events consists of the following: (1) the use case begins when bank customer inserts their bank card; (2) Use Case: Validate User is performed; (3) The ATM displays the different alternatives that are available on this unit. In this case the Bank Customer always selects “Withdraw Cash”; (4) the ATM prompts for an account; (5) the bank customer selects an account; (6) the ATM prompts for an amount: (7) the bank customer enters an amount;(8) card id, pin, amount and account is sent to Bank as a transaction. The Bank Consortium replies with a go/no go reply telling if the transaction is ok; (9) then money is dispensed; (10) the bank card is returned; (11) the receipt is printed; and finally (12) the use case ends successfully.…

    • 1184 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    Instructions: For this assignment, you are going to created an abstract class and then extend it.…

    • 495 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Use Case

    • 846 Words
    • 4 Pages

    When a customer inserts their ATM card into the card reader of the ATM machine, a session will started to read customer card. If it can’t read the card due numerous reasons, then the system will eject the card and error message will display on screen. If the system successful read the card, it will ask the customer to enter his/her PIN, if the pin match with server database a system main menu will display. The main menu consists of multiple types of transaction such as withdrawal, deposit, transfer, or account balance. In an event of invalid pin was entering, system will ask customer to try again. It will allow customer three times to enter the right pin. If customer did not enter the correct pin for the fourth times, a screen will display to ask customer to talk to bank representative. The system will keep customer ATM card. Otherwise when the customer is through with his/her transactions, the card is ejected from the machine and session ends.…

    • 846 Words
    • 4 Pages
    Good Essays
  • Good Essays

    The task of these machines is to learn what each customer wants to do with their money and, to the extent that it is possible, act on what the customer wants (for example, ATMs can hand out cash). Customers can always know how much money they have in their accounts, and they are confident that the numbers they see in their bank statements and on their computer screens accurately reflect the number of dollars that they can get from the bank on demand. They can be so sure of this that they can accept those numbers in the same way they accept paper banknotes (this is similar to the way people started accepting paper dollars when they had been accepting gold or…

    • 796 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Info1105

    • 951 Words
    • 4 Pages

    You are NOT allowed to use any 3rd‐party libraries for this assignment. All code must be your own work. NOTE: You should write your own set of JUnit tests in the test files to ensure your 4 classes are working. Part of the assignment will be automatically marked, and you will only be allowed THREE (3) attempts in total. Each required file is covered in more detail below. A skeleton project has also been provided through eLearning.…

    • 951 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Prg420 Syllabus

    • 1691 Words
    • 7 Pages

    Faculty and students/learners will be held responsible for understanding and adhering to all policies contained within the following two documents:…

    • 1691 Words
    • 7 Pages
    Satisfactory Essays
  • Better Essays

    RSA Exam

    • 10133 Words
    • 82 Pages

    Lisa: I have noticed there’s no ATMs in here. Do people mind leaving their machines to get money? Continued... Scenario - Training to a new staff member (Read the scenario below and answer the questions) Staff member: The ATM isn’t I here on purpose, we encourage people to have a break from the machines, anyway. We do things like, only pay big winnings by cheque and that cheque can’t be cashed that day.…

    • 10133 Words
    • 82 Pages
    Better Essays
  • Better Essays

    v. The body of the class is contained within a set of braces, and typically consists of type declarations…which are often referred to as the data members of the class, method definitions, and sometimes even other class definitions.…

    • 939 Words
    • 4 Pages
    Better Essays
  • Good Essays

    Assignment 1 Jiadai Gao

    • 596 Words
    • 2 Pages

    1. Prepare a list of internal control procedures that banks and other financial institutions have implemented, or should implement, for their ATM operations.…

    • 596 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Schaubhut. N, Herk. N, Thompson R., MBTI Form M Manual Supplement (2009). Retrieved from https://www.cpp.com/pdfs/MBTI_FormM_Supp.pdf…

    • 1524 Words
    • 5 Pages
    Better Essays
  • Satisfactory Essays

    4.6.2 Class Diagram

    • 774 Words
    • 4 Pages

    It is printed in Bold, centered and the first letter capitalized. • The middle part contains the attributes of the class. They are left aligned and the first letter is lower case. • The bottom part gives the methods or operations the class can take or undertake. They are also left aligned and the first letter is lower case.…

    • 774 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Top Tech Trends of 2012

    • 511 Words
    • 4 Pages

    to describe the signature of a Java class’s methods and fields. The following grammar describes…

    • 511 Words
    • 4 Pages
    Good Essays