728x90 AdSpace

Latest Article



ATM Problem Question Assignment for C C++ and Java





Mini ATM Problem Question Assignment for C C++ and Java
Mini-ATM
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
size 100.
Your program should allow the user to make a transaction. For this, ask the user for the
following:
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"

no image
  • Title : ATM Problem Question Assignment for C C++ and Java
  • Posted by :
  • Date : 04:04
  • Labels :






  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment