Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have asked this question a bunch of times through here but I need each section HERE IS MY CODE. CAN I PLEASE GET EACH

I have asked this question a bunch of times through here but I need each section HERE IS MY CODE. CAN I PLEASE GET EACH SECTION WORKING INDIVIDUALLY

THIS IS THE CODE AND ERROR I KEEP GETTING PLEASEE HELLLPPPPPP

image text in transcribed

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; }image text in transcribed

image text in transcribed

Error: Compilation Error main. cpp:162:1: error: unknown type name 'cout' cout "Initial Investment Amount: \$"; ^ main.cpp:162:6: error: expected unqualified-id cout "Initial Investment Amount: \$"; ^ main.cpp:163:1: error: unknown type name 'cin' cin > initInv; * main. cpp:163:5: error: expected unqualified-id cin >> initInv; ^ main. cpp:164:1: error: unknown type name 'cout' cout "Monthly Deposit: \( \$ " \)quot;; main. cpp: 164:6: error: expected unqualified-id cout "Monthly Deposit: name 'cin' cin > monDep; main. cpp: 165:5: error: expected unqualified-id cin monDep; ^ main.cpp:166:1: error: unknown type name 'cout' cout "Annual Interest: \%"'; ^ main.cpp:166:6: error: expected Please submit your solution. 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. Write a method to calculate bank balances with 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. Write a method to format a table of values for display based on which balance method was called. See the project documentation for details. 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. Submit your project here. Make sure you've included all the required elements by reviewing the requirements and rubric

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

Explain main features of performance appraisal.

Answered: 1 week ago