Hi,

I am a beginning student of C++ and I am having trouble with the whole programming process. Here's, my latest trouble I am now writing a program to calculate mortgage payment with interest rates from 6% to 10%, starting at 5 years to 30 years with 5 year increments. Formula: m = r*l*f / 12 *f / 12* (f - 1); where f = (1 + r/12) * 12*y.

Here is a sample of my code:

float r; //variable for interest rate

int l; //variable for loan amount

int y; //variable for the number of years

float mgt; //mortgage

int pow;

float f = pow((1 + r/12),(12 *y));

float f1 = pow((1 + r/12),(12*y-1));

for (r = .06; r <=.10; r++)

{

for(y = 5; y <=30; y++)

my trouble is when I compile and run my program I keeping get an error message relating to pow-term does not evaluate to a function. What does this mean?