out following ATM money withdrawal algorithm and make flow chart and write code. Step 1. Insert your ATM card into the machine Step 2. Machine asks you to input your PIN code Step 3. You entered your PIN code as input Step 4. Machine verifies PIN code 1. If PIN code is wrong, machine says “Wrong PIN code” 1.1. Machine verifies is it 3rd attempt? 1.2. If YES, machine seizes your ATM card Else, machine says, “Try again” – go to Step 2 Else, proceed Step 5. Machine asks you to enter amount of withdrawal Step 6 You entered your desired amount Step 7. Machine verifies is amount is within range withdrawal amount (20,000) Step 8. If NO, Machine says, “You have exceeded limit.” – go to step 5 Else, proceed

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
  1. Read out following ATM money withdrawal algorithm and make flow chart and write code.
  2. Step 1. Insert your ATM card into the machine
  3. Step 2. Machine asks you to input your PIN code
  4. Step 3. You entered your PIN code as input
  5. Step 4. Machine verifies PIN code
  6. 1. If PIN code is wrong, machine says “Wrong PIN code”
  7. 1.1. Machine verifies is it 3rd attempt?
  8. 1.2. If YES, machine seizes your ATM card Else, machine says, “Try again” – go to Step
  9. 2 Else, proceed
  10. Step 5. Machine asks you to enter amount of withdrawal
  11. Step 6 You entered your desired amount
  12. Step 7. Machine verifies is amount is within range withdrawal amount (20,000)
  13. Step 8. If NO, Machine says, “You have exceeded limit.” – go to step 5 Else, proceed
  14. Step 9. Machine verifies, whether you have enough money in your account?
  15. Step 10. If NO, machine says, “You don’t have enough money in your account” and ejects the card. Else, proceed
  16. Step 11 Machine verifies, whether it hold enough money in cash-dispatcher?
  17. Step 12. If YES, it dispatches money and ejects ATM card Else, machine says, “Cash-dispatcher has not sufficient money”
  18. Step 3 Machine asks, “Press ‘1’ to try with smaller money or Press ‘Cancel’ to Eject ATM card”
  19. Step 14. You entered, either “1” or “Cancel”
  20. Step 15 Machine verifies input

Step 16. If it is “1” – go to step 5 Else, machine ejects the ATM Card

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY