Question: I just need the section that makes this function work to calculate balances without monthly deposit IF you can I need one that also calculates

I just need the section that makes this function work to calculatebalances without monthly deposit IF you can I need one that alsoI just need the section that makes this function work to calculate balances without monthly deposit

IF you can I need one that also calculates balances with monthly deposits

BUT SEPARATELY SO THEY CAN WORK Without error

This IS THE CODE I GOT

invest.cpp

#include #include

using namespace std;

int main() { //Declare variables to store input float initInv, monDep, AnuInt, months, years; //Declare variables to store year end total amount, interest, and year end interest float totalAm, intAmt, yearTotInt;

//Display form to user cout

//Wait for input from user system("PAUSE");

//Get data from user cout > initInv; cout > monDep; cout > AnuInt; cout > years; months = years * 12;

//Wait for input from user system("PAUSE");

//Set total amount to initial investment to be updated totalAm = initInv;

//Display year data without monthly deposits cout

for (int i = 0; i

//Calculate yearly interest intAmt = (totalAm) * ((AnuInt / 100));

//Calculate year end total totalAm = totalAm + intAmt;

//Print results to table showcasing only two decimal points cout

}

//Set total amount to initial investment to be updated totalAm = initInv;

//Display year data with monthly deposits cout

for (int i = 0; i

//Set yearly interest to zero at the start of the year yearTotInt = 0;

for (int j = 0; j

//Calculate monthly interest intAmt = (totalAm + monDep) * ((AnuInt / 100) / 12);

//Calculate month end interest yearTotInt = yearTotInt + intAmt;

//Calculate month end total totalAm = totalAm + monDep + intAmt;

}

//Print results to table showcasing only two decimal points cout

}

return 0; }

Write a function to calculate bank balances without a monthly deposit being made. Get feedback on how well my function works and tips on how to make it better. Once you are satisfied with your feedback from Sense add your function to the appropriate class as a method of that class. Please submit your solution

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!