#include <iostream>
#include <cmath>
#include <iomanip>

using namespace std;
int main(){
    
    double rate, principle, total;
    int iTime;
    
    cout << "Enter the amount of money that they started off with: ";
    cin >> principle; 
    
    cout << "\n What is the interest rate on the money that you invested: ";
    cin >> rate;//5 /100  
    
    cout << "\nHow long is the money going to be invested: ";
    cin >> iTime;
    
    rate /= 100;
    
    total = (principle)* pow((1+rate), iTime);
 
    cout << setiosflags(ios::fixed) << setiosflags(ios::showpoint) << setprecision(2);
    cout << "$" << total;
    
    return 0;
}
