Looping & Calculate the percentage

#include <iostream>
#include <iomanip>
#include <math.h>
using namespace std;

int main()
{
const int membership_Fee = 2500;
double rate = 0.04;
const int START_YEAR = 1;
const int END_YEAR = 6;

int year = START_YEAR;


cout << "Year\t " << "% Increase\t " << "Fee\t " << endl;
cout << "===================================" << endl;
cout << fixed << showpoint << setprecision(2);

while (year <= END_YEAR)
{
cout << year << "\t" << endl;
year++;
}

return 0;

}


PERCENTAGE =4%
STARTING AMOUNT = 2500

I AM HAVING TROUBLE CALCULATING THE PERCENTAGE. I HAVE TO CALCULATE THE AMOUNT OF MONEY FOR 6 YEARS.
i have done the loop for years.
Topic archived. No new replies allowed.