I have to make a function that will calculate the interest using this formula current * (rate + 1)^ time.. however i cant get it to calculate correctly anybody have an idea of how to get this done?
int main()
{
float now, interest, years;
cout << "== How Much Money Will You Have? ==" << endl;
cout << "How much money do you have now?" << endl;
cin >> now;
cout << "What's the interest rate? (format: 0.05 for 5%)" << endl;
cin >> interest;
cout << "How many years will the money sit? (fractions are OK)" << endl;
cin >> years;
cout << "You will have " << future_value(now, interest, years) << " in " << years << " years." << endl;
}