#include "stdafx.h"
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;


int _tmain() {

// declare variables

int principal = 1000;
double rate = .03;
int years = 1; //counter
double balance = 0.0;

// Begin loop


do{
balance = principal * pow(1 + rate, years);
cout << "year " << years << ":" << endl;
cout << " $" << balance << endl;
years += 1; //update years counter

} while (years < 6);

system("pause");
return 0;
}


//This is the end of the initial program...

I need to modify the program to use annual interests rates of 3%, 4%, and 5%.

After that I need to modify the program to make it so the user enters the dollar amount of the deposit, the interest rate or rates, and the number of years.

I'm a design student at New England Tech but before we can go full design they want to make sure we know for sure if we want to be a designer or a programmer and so we need to take C++ classes which I suck at so any help would be appreciated.