double future_value(double initial_balance, double p, int n)
{
assert(p >= 0);
assert(n >= 0);
return initial_balance * pow(1 + p / 100, n);
}
/** Computes the value of an investment with compound interest. @param initial_balance the initial value of the investment @param p the interest rate in percent; must be >= 0 @param n the number of periods the investment is held; must be >= 0 @return the balance after n periods */