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

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter4: Making Decisions
Section: Chapter Questions
Problem 6E: Account numbers sometimes contain a check digit that is the result of a mathematical calculation....
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
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT