Atm Machine Dev C++

Mar 31, 2020  ATM in dev c Home. Programming Forum. Withdrawing and Depositing amount in whole number in an ATM. Phoeboo 7 Years Ago. Example withdrawing 100 if the user inputed 95, 96 etc.it won't allow to withdraw. Tinstaafl 1,112 7 Years Ago. Here's some code you might find useful. Re-worked it so that main is less cluttered, and also.

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

Atm Machine Dev C++

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.

Dev

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.

  • 5 Contributors
  • forum 4 Replies
  • 470 Views
  • 1 Week Discussion Span
  • commentLatest Postby thines01Latest Post

deceptikon1,790

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

Having problem in pin code if the user will input less than 4 digit number and a character type..could some1 help me from this.. (@@,

  • 4 Contributors
  • forum 11 Replies
  • 4,308 Views
  • 9 Months Discussion Span
  • commentLatest Postby PhilpsssLatest Post

tinstaafl1,114

to validate the PIN you could try this:

Anything that isn't a valid pin will get rejected. You shouldn't need to test for valid pin in the rest of your code just use the value of myaccount.

I switched mypin to a string since, with int, 0123 = 123.

Dev C++ Atm Machine

Edited by tinstaafl