#include <iostream>
#include <cmath>
usingnamespace std;
double pwr(double co2);
int main( )
{
double loan_hand, int_rate, face_value, monthly_payment,
time_period, int_month, co1, co2, mp1, loan_amount;
cout<< "Please enter amount in hand?\n";
cin >> loan_hand;
cout<< "Please enter the interest rate?\n";
cin >> int_rate;
cout << "Please enter the time period in months.\n";
cin >> time_period;
int_month=int_rate/12;
monthly_payment=loan_hand/time_period;
co1=monthly_payment/int_month;
co2= pow(1-(1+int_month, time_period(-1));
loan_amount=co1*co2;
cout << "you will need a loan with a face value" << loan_amount;
system("PAUSE");
return EXIT_SUCCESS;
}
Using a dev C++ compiler, the variable time_period appears to be considered a function and I'm not sure why. I know this is simple and appreciate any clear or concise answer, or a track to find as such.