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.

Recommended Answers

All 4 Replies

What have you done so far? Nobody here will write this for you.

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...

If you search this forum, you will find someone working on practically the same thing.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.