Hey guys I am still really new to C++, as I am currently taking my first programming class. I am currently working on a payment calculator. I am using Visual Studio 2010. Before I get into this I want to say this is NOT homework just simply practice for me. This is what I have so far.

#include<iostream>

#include<math.h>

usingnamespace std;

intmain()

{

float rate, priceOfHouse, years, finalPayment;

const double MONTHLY_INTEREST_RATE = (rate/100/12);

const float INTIAL_MONTHLY_PAYMENT = (rate/100/12) * priceOfHouse;

const double LENGTH_OF_LOAN = -years/12;

cout <<

"Enter Interest Rate: ";

cin >> rate;

cout << "Enter Price of House: ";

cin >> priceOfHouse;

cout << "Length of Loan in terms of Years: ";

cin >> years;

finalPayment = INTIAL_MONTHLY_PAYMENT / (1 - ((1 + (MONTHLY_INTEREST_RATE)) exp(LENGTH_OF_LOAN)))

************************************************** ******

The problem that I am stuck at right now is this last line finalPayment =, the exponent (exp) part. It is telling me Error: expected a ")"

With the variables plugged in the formula is suppose to look like so: (input numbers are just expamples)

((6.5/100/12)*200000 / (1-((1+(6.5/100/12))^(-30/12)))

Not looking for anyone to finish this for me just a little help with this last line, maybe an example of what something like this (a formula) would look like in C++

Thanks,

NismoT