So I have this so far, not sure how to make dollars * e^(rate*time)
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
//declare identifiers
double rate = 1;
double time = 2;
float dollars;
float total=0.0;
//initialize identifiers
total= pow(exp(1.0), rate*time);
cout << fixed << showpoint << setprecision(2);
//Enter values
cout << "Enter the money you want to deposit now(P): " << dollars;
cout << "Enter the interest rate: " << rate;
cout << "Enter duration in year(t): " << time;
cout << " Your balance after 5 years is " << total;
cout << endl;
//terminate program
system("pause");
return 0;
}