The document describes a customer account with name, account number, pin, balance, and locked status. It provides logic for withdrawing money from an ATM which includes displaying a greeting after login, allowing up to 3 incorrect pin attempts before locking the account, limiting single withdrawals to 5000 or less than the balance, and showing the remaining balance after a transaction.
The document describes a customer account with name, account number, pin, balance, and locked status. It provides logic for withdrawing money from an ATM which includes displaying a greeting after login, allowing up to 3 incorrect pin attempts before locking the account, limiting single withdrawals to 5000 or less than the balance, and showing the remaining balance after a transaction.
The document describes a customer account with name, account number, pin, balance, and locked status. It provides logic for withdrawing money from an ATM which includes displaying a greeting after login, allowing up to 3 incorrect pin attempts before locking the account, limiting single withdrawals to 5000 or less than the balance, and showing the remaining balance after a transaction.
- After successful login, display message Hello {name} - User can enter upto 3 incorrect pins. After 3rd attempt, account is locked and Locked message is displayed. - User can withdraw maximum of 5000 in sinfle transaction. - User can not withdraw more than balance. - After completion of transaction, show remaining balance.