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

  1. View Balance
  2. Deposit
  3. Withdraw
  4. 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.

1 Year
Discussion Span
Last Post by thines01

What deceptikon said. We don't do your homework for you. Make an honest attempt to do the assignment, and post your code with errors here in order to get our help.


Hey Azeez, the clue is in the first three words: write a program. At least start doing that and then share the code, or pseudo-code, with us and I'm sure someone will be able to help you get past your stumbling blocks. If you cannot write any code for this, then I suggest you are taking the wrong class...

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.