Knowee
Questions
Features
Study Tools

Write an algorithm and draw a flowchart to show the steps of ATMcash withdrawal.

Question

Write an algorithm and draw a flowchart to show the steps of ATMcash withdrawal.

🧐 Not the exact question you are looking for?Go ask a question

Solution

Algorithm for ATM Cash Withdrawal:

  1. Start
  2. Insert ATM card into the ATM machine.
  3. Enter the PIN number.
  4. Select the 'Withdraw Cash' option.
  5. Enter the amount to be withdrawn.
  6. If the entered amount is less than or equal to the balance, proceed to the next step. If not, print an error message and go back to step 4.
  7. Check if the ATM has enough cash for the withdrawal. If not, print an error message and end the process.
  8. Dispense the cash.
  9. Ask the user if they want a receipt. If yes, print the receipt.
  10. Eject the ATM card.
  11. End

Flowchart:

  1. Start
  2. |--> Insert ATM card
  3. |--> Enter PIN
  4. |--> Select 'Withdraw Cash'
  5. |--> Enter amount
  6. |--> Is the amount <= balance? --No--> Display error, go back to step 4
  7. |--> Is the ATM cash sufficient? --No--> Display error, End
  8. |--> Dispense cash
  9. |--> Ask for receipt --Yes--> Print receipt
  10. |--> Eject ATM card
  11. End

This problem has been solved

Similar Questions

Draw the Sequence Diagram to Withdraw the Money from ATM

You are required to prepare the sequence diagram for withdrawing the money from the ATM for the following sequence of the events: The customer is able to make withdrawal of Money from the Bank ATM. The system employs the standard procedure for withdrawal of money by validating the card and account holder password. Assume that the main objects in this case are Customer and ATM.

Write an algorithm and draw a flowchart to calculate SimpleInterest.

se the following flowchart to answer the below two questions 1) and 2).

Draw flow charts for each of the following programming constructs (2 Marks each)і.If statementії.If - else statement i.for loopiv.while loopv-.Do-while loop.

1/1

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.