Write a c++ program in which you will keep a record of all transactions (deposit/withdrawal) happening in a bank. Create a text file containing information of all accounts in a bank. Load this information into a struct array at the start of the program. Make a menu for the following options Make a Transaction Deposit Withdrawl View all Transactions
Write a c++ program in which you will keep a record of all transactions (deposit/withdrawal) happening in a bank. Create a text file containing information of all accounts in a bank. Load this information into a struct array at the start of the program.
Make a menu for the following options
- Make a Transaction
- Deposit
- Withdrawl
- View all Transactions
Make a Transaction:
Once this option is selected, show two more options for Deposit and Withdrawl.
Whatever option is selected by the user, your program should then ask for account ID, verify if its exist, and then ask for the amount.
Update the balance in the account variable in struct array by adding or subtracting the transaction amount.
Make a log of all transactions by storing the transaction details into a binary file. Transaction details should include
Date and Time of transaction, Account#, Type of Transaction, and Amount of Transaction
Use the binary file in Append mode in order to keep the previous data
View all Transactions:
Show all the transactions on the console by reading the log file.
Once the program ends, overwrite the bank account file with the struct array contents.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps