Mini ATM Problem Question Assignment for C C++ and Java
You have to write a program that maintains data for an ATM.
You are provided with the file "accounts.txt" where the following data is stored:
1. Account ID (ranging from 0 to 99)
2. Balance (ranging from 0 to 100,000)
3. Number of transactions
Write a program that reads this file and stores the data in a 2-dimensional integer array of
Your program should allow the user to make a transaction. For this, ask the user for the
1. Account ID
2. Amount (this will be negative to withdraw money, positive to deposit)
Update the array so that it stores the new balance, and increment the number of
transactions made on that account.
At the end of each transaction, ask the user if he wants to make another transaction. If yes,
then run the above procedure again.
When the user does not want to make any more transactions, write the updated data back
to the file "accounts.txt"