Question

I need a flow chart for this please #include <iostream> using namespace std; int main() {...

I need a flow chart for this please

#include <iostream>

using namespace std;

int main()
{
//Declare variables
double interest=6.0,amount,rate;
int year;
//Here we need to calculate 10 years amount with interest rate 6 to 12
do{
//Set the variable year as 1 and interest rate ( from 6 to 12)
//then we will calculate the amount for each year for the particular interest
year=1;
cout<<"\nINTEREST RATE "<<interest<<endl;
cout<<"----------------------"<<endl;
do{
amount=1000;
rate=interest/100;
//amount calculation for each year
amount=amount+(amount*rate*year);
cout<< "Year "<<year<<" : "<<amount <<endl;
//Increments year
year++;
}while(year <= 10); //Repeat the loop for 10 years

//Increment th interest
interest=interest+1.0;

} while(interest<=12);
return 0;
}

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
I need a flow chart for this please #include <iostream> using namespace std; int main() {...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT