Java ATM Machine ATM machines are used to withdraw and deposit cash in addition to make balance inquiries. The user enters a card in the ATM's card reader, then the ATM, and through its console screen, asks the user to enter the card 4 digit PIN number. If the PIN is verified by the Bank (which keeps a list of bank accounts), the ATM will present the user with a menu of the available choices (Transactions), otherwise, invalid PIN message will be displayed, users can try to enter the PIN three times after which the card will be claimed by the machine. If the user choses to withdraw, he will be presented with a menu of a specific amounts or he can enter the amount, if the user balance is sufficient and if the cash dispenser has the amount available, the cash amount will be dispensed from the cash dispenser. 1. Withdraw 2. Balance inquiry At any time during a transaction, the user can choose to cancel and thus end the transaction 1. Ready: waits the user to enter the Card 2. Card Card Inserted: waits the user to enter the PIN 3. Transaction: waits for the user to select transaction 4. Withdraw: waits for the user to enter amount 5. Dispense Cash: waits for the user to collect money and exit 6. Display Balance: display balance and waits for the user to select back/exit 7. Display Error message

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter11: More Object-oriented Programming Concepts
Section: Chapter Questions
Problem 2GZ
icon
Related questions
Question

Java ATM Machine

ATM machines are used to withdraw and deposit cash in addition to make balance inquiries. The user enters a card in the ATM's card reader, then the ATM, and through its console screen, asks the user to enter the card 4 digit PIN number. If the PIN is verified by the Bank (which keeps a list of bank accounts), the ATM will present the user with a menu of the available choices (Transactions), otherwise, invalid PIN message will be displayed, users can try to enter the PIN three times after which the card will be claimed by the machine. If the user choses to withdraw, he will be presented with a menu of a specific amounts or he can enter the amount, if the user balance is sufficient and if the cash dispenser has the amount available, the cash amount will be dispensed from the cash dispenser. 1. Withdraw 2. Balance inquiry At any time during a transaction, the user can choose to cancel and thus end the transaction 1. Ready: waits the user to enter the Card 2. Card Card Inserted: waits the user to enter the PIN 3. Transaction: waits for the user to select transaction 4. Withdraw: waits for the user to enter amount 5. Dispense Cash: waits for the user to collect money and exit 6. Display Balance: display balance and waits for the user to select back/exit 7. Display Error message

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Returning value from Function
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,