Write a program, which will imitate an ATM machine. The program will ask for a password. Assume that only password 123456 is accepted. If the password is correct, display the following menu
Menu ATAM Bank ABC
- View Balance
- Deposit
- Withdraw
-
Transfer Fund
Your choice : ___Option 1 will display the current balance. Assume all customers will have an initial balance of RM1000.00.
Option 2 will input an amount and add the amount to the current balance. Display the new balance.
Option 3 will input an amount and deduct the amount from the current balance. Display the new balance.
Option 4 will input an account (9 digit value) and deduct the amount from the current balance. The following message will be displayed.
<amount transfer> has been transferred to account <account_id>. The current balance is <balance>.
Npte: the values between the <> symbols are depending on the input from the user.