95.0k views
0 votes
a) The Manager of Sahem Bank wants an Automated Teller Machine (ATM) that will enable customers of the bank perform certain bank transactions such as withdrawal. They want the ATM to allow a customer to withdraw maximum of GHC 1000.00 per day. If the customer attempts withdrawing more than GHC 1000.00, the ATM inform the customer it cannot withdraw more than GHC 1000.00. If the amount the customer attempts withdrawing is more than the available balance, it should prompt the customer about the insufficient balance. It should give the option of withdrawing an amount less than the balance. Write an pseudocode and draw a flow chart for the ATM withdrawal transactions.​

User Meet
by
8.2k points

1 Answer

0 votes

Prompt the user to insert their ATM card.

Verify the validity of the card.

Prompt the user to enter their PIN.

Verify the PIN and proceed to the next step if it is correct.

Display the menu of transactions available.

If the customer chooses to withdraw, prompt the customer to enter the amount to withdraw.

Verify that the amount is not more than GHC 1000.00 and that the customer has sufficient balance.

If the amount is more than GHC 1000.00, display a message that the customer cannot withdraw more than GHC 1000.00.

If the customer does not have sufficient balance, display a message that the balance is insufficient and give the option to withdraw an amount less than the balance.

Dispense the cash to the customer if all conditions are met.

Print the receipt for the transaction.

Eject the ATM card.

End the transaction.

User Muluken Getachew
by
8.4k points