Write a C++ program that calculates the balance of a savings account at the end of a month period. The program should read from a file (bank.dat, downloadable from blackboard) the account number, the current balance and the account type. Depending on the account type, a different annual interest rate will be applied (according to the table shown below). The monthly interest rate is the annual interest rate divided by 12. The program should write a report to a file (report.txt) containing the following information:
1. Your name – Yes, you will have your program print your name to the file that it is writing.
2. An appropriate header for the report columns
3. The account number, current balance, interest paid and the new balance
4. After the last iteration, the program should write total values to the report by using the word “TOTAL” in the account column and the total of all three numerical columns

That all looks fine. Good luck with your homework.

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.