I've pretty much got everything down. I need help actually getting the program to do all the calculations.
Write a program that calculates the balance of a savings account at the end of a threemonth
period. It should ask the user for the starting balance and the annual interest rate. A
loop should then iterate once for every month in the period, performing the following:
A) Ask the user for the total amount deposited into the account during that month.
Do not accept negative numbers. This amount should be added to the balance.
B) Ask the user for the total amount withdrawn from the account during that
month. Do not accept negative numbers or numbers greater than the balance
after the deposits for the month have been added in.
C) Calculate the interest for that month. The monthly interest rate is the annual
interest rate divided by 12. Multiply the monthly interest rate by the average of
that month’s starting and ending balance to get the interest amount for the
month. This amount should be added to the balance.
After the last iteration, the program should display a final report that includes the following
information:
• starting balance at the beginning of the three-month period.
• total deposits made during the three months
• total withdrawals made during the three months
• total interest posted to the account during the three months
• final balance.
#include<iostream>
using namespace std;
class Account
{
private:
int Balance;
int monthInterestrate;
double bal;
double deposit;
double withdraw;
double totalB;
Yea, I know this is my third time posting but I really need to get this done tonight and would like someone to look at it and help me complete it on time.