Question: ( In c # program) Read out following ATM money withdrawal algorithm and make flow chart and write code. Step 1. Insert your ATM card
( In c # program)
- Read 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
- 5.1. If PIN code is wrong, machine says Wrong PIN code
- 5.1.1. Machine verifies is it 3rd attempt?
- 5.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
- Step 9. Machine verifies, whether you have enough money in your account?
- Step 10. If NO, machine says, You dont have enough money in your account and ejects the card. Else, proceed
- Step 11 Machine verifies, whether it hold enough money in cash-dispatcher?
- Step 12. If YES, it dispatches money and ejects ATM card Else, machine says, Cash-dispatcher has not sufficient money
- Step 3 Machine asks, Press 1 to try with smaller money or Press Cancel to Eject ATM card
- Step 14. You entered, either 1 or Cancel
- Step 15 Machine verifies input
- Step 16. If it is 1 go to step 5 Else, machine ejects the ATM Card.
Step by Step Solution
There are 3 Steps involved in it
To address the given problem and create a solution in the form of a flowchart and C code lets break down each step Flowchart The flowchart should foll... View full answer
Get step-by-step solutions from verified subject matter experts
