Documente Academic
Documente Profesional
Documente Cultură
Ans: 1
ATM (Automatic Teller Machine): An ATM enables a customer to perform their
banking transactions and other basic financial solutions (withdrawing or transferring funds, checking balance, mini statements etc.) from almost every other ATM in the world without need of a cashier, human clerk or bank teller. The ATM can trim down long lines inside the bank by providing an alternative of a human teller. If we need cash in the evening, on a holiday the ATM is there to provide so that customers can access the services for 24 hours a day, seven days a week. The concept of the ATM first began in 1968. Don Wetzel was the co-patentee and chief conceptualist of the ATM, an idea he thought of while waiting in line at a Dallas bank. At the time he was the Vice President of Product Planning at Docutel, the company that developed automated baggage-handling equipment. The other two inventors listed on the patent were Tom Barnes, the chief mechanical engineer and George Chastain, the electrical engineer. It took five million dollars to develop the ATM. The first working ATM was installed in a New York based Chemical Bank. [Reference: http://www.thocp.net/hardware/atm.htm]
ATM System: In ATM system the user can access their bank accounts in order to
withdraw cash, get a mini statement, check balance, recharge their mobile phones, booking their air-tickets without visit the bank. The ATM will service one customer at a time. To use an ATM we need an ATM card and a PIN number. When insert an ATM card into a card reader, and type PIN number using a keypad on the machine. It asked to choose desire option, for example fast cash, mini-statement, check balance. If you choose the option fast cash, you will see the option of different amounts of money that you can withdraw. You then click on an amount, wait a little while, then your card is returned, then amount and small receipt will be dispensed. Once your withdraw was successful, the amount will be debited in your account.
Page 1 of 10
Page 2 of 10
A class, attribute and method are represented as: Class_name Attribute 1 Attribute 2 Attribute 3 ------------Attribute n Methods( ) 1 Methods( ) 2 -------------Methods( ) n Example: ATM card Card no. Card type Bank Exp date Withdraw() checkBal() printStatement()
Page 3 of 10
Other examples of objects are: aCustomer, aCard reader, aScreen, aKeypad, aDispenser, aSecurity, anAccount, anATM etc.
In ATM system the objects always interrelate with the class. A customer named Ram has an account on a bank. To withdraw cash from ATM he inserts a card into a card reader and enters PIN using a keypad. The screen initializes and displays the options. A customer enters the desired option such as fast cash. Then the amount is deducted from is account and dispense cash with small receipt. In this way the object is constantly interact with the classes. One example of class object diagram is shown below: ATM card Card no: number Card type: String Bank: String Exp date: Date Void Withdraw() Double checkBal(Acc)
Page 4 of 10
Actor: Actor represents the roles that user or other system take on when interacting with the particular use cases in the system. In ATM system there can be two actors: Costumer and Banking System where customer is the primary actor of ATM system because an ATM system is designed for customer.
Page 5 of 10
Customer inserts ATM card in the 2. The card reader verifies the card no., bank ID, expire date, card type etc. 3. ATM connects to the specific bank and opens customers account. 4. The ATM asks to the customer to enter PIN number.
6. The ATM compares the PIN number with the one that is coded on the chip of the ATM card. 7. ATM displays the system defined variety of options.
8. Customer selects an option, suppose Fast 9. The ATM asks the customer to enter the Cash. 10. The customer desired withdrawal amount. enters the desired 11. The ATM checks the amount against the daily withdrawal limit. 12. The ATM system deduct amount (Rs. 5000) from costumers account. 13. ATM system closes that account and returns the card to the customer. 14. Customer takes ATM card. 15. ATM issues cash and a receipt at the same time showing the new balance. 16. Customer takes cash and a receipt.
Page 6 of 10
ATM system
Insert card Verify card Open account Ask PIN Enter PIN Customer Verify PIN
Banking System
Dispense receipt
Page 7 of 10
Security
Cash
ProvideCash()
ProvideR()
Page 8 of 10
Generalization: Generalization is the part of inheritance. It is the process of creating super class by taking common attributes and methods. For example: Dispenser is the super class with common attributes model, location and common method dispense(). Dispenser has same attributes and methods of class Cash and Receipt.
Composition: Composition shows the totally dependent between two classes in class diagram. For example: The class ATM is totally dependent with Bank because without bank the ATM system cant operate. The small black diamond symbol represents Composition.
Cardinality: It specifies how many objects of one class related to how many objects of another class. The different types of cardinality are: one-to-one, one-to-many and many-tomany. One is represented as 1 and many is represented as * (asterisk sign) in the class diagram. In above class diagram class ATM card and Card Reader have many-to-one or one-to-many cardinality.
Page 9 of 10
References:
Internet: http://www.thocp.net/hardware/atm.htm http://www.indiastudychannel.com/projects/2344-ATM-System-Project.aspx http://www.math-cs.gordon.edu/courses/cs320/ATM_Example/ClassDiagram.html http://www.math-cs.gordon.edu/courses/cs211/ATMExample/UseCases.html http://en.wikipedia.org/wiki/Use_case_diagram http://www.developer.com/design/article.php/2109801/Creating-Use-CaseDiagrams.htm Books: Object-Oriented Programming, School of Computer Science, University of KwaZulu-Natal (2007), Anban Pillay. OBJECT-ORIENTED ANALYSIS AND DESIGN With applications, Grady Booch, Rational Santa Clara, California. Understamding Object- Oriented Programming with JAVA, Timothy Budd (2005)
Page 10 of 10