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.
Solution
Algorithm for ATM Cash Withdrawal:
- Start
- Insert ATM card into the ATM machine.
- Enter the PIN number.
- Select the 'Withdraw Cash' option.
- Enter the amount to be withdrawn.
- 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.
- Check if the ATM has enough cash for the withdrawal. If not, print an error message and end the process.
- Dispense the cash.
- Ask the user if they want a receipt. If yes, print the receipt.
- Eject the ATM card.
- End
Flowchart:
- Start
- |--> Insert ATM card
- |--> Enter PIN
- |--> Select 'Withdraw Cash'
- |--> Enter amount
- |--> Is the amount <= balance? --No--> Display error, go back to step 4
- |--> Is the ATM cash sufficient? --No--> Display error, End
- |--> Dispense cash
- |--> Ask for receipt --Yes--> Print receipt
- |--> Eject ATM card
- End
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.
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.