New to Programming and Need Help

This is a discussion on New to Programming and Need Help within the C++ Programming forums, part of the General Programming Boards category; Hey Everyone this is my first post so I'll get the Intro's out of the way. I'm Kendra and I'm ...

New to Programming and Need Help

Hey Everyone this is my first post so I'll get the Intro's out of the way. I'm Kendra and I'm 21 years old and I'm a new Computer Programming Major. I'm halfway through my first semester as this major. I spent 2 years in College as a Nursing Major only to find out , after my Mothers death, that I do not want to be a Nurse lol I've always loved computers but everything that I know up to this point is self taught. I live in a small town and no one here does this kind of stuff so I'm somewhat on my own. I've been doing well in my classes (which are all ONLINE) but, C++ has been somewhat of a Pain in my Butt lol My other Programming classes are great.

SO, here is my problem. I'm having to create a program using While loops. The purpose of the program is to calculate monthly car payments for the user. I'm not allowed to use any Global Variables. I'm also not allowed to use functions so I have to use a Linear-straight-line program. My problem lies in the monPayment I keep getting this error.* error C2064: term does not evaluate to a function taking 1 arguments* I'm confused as to how I would get the monPayments to calculate correctly, given that the number of months (noMonths) has to be either 24, 36, 48 & 60.

Thank you!

Thank You for your generous reply!

Yes, there is more to the code, I did not paste my return 0; with the return brace ( } ). And Now that I look, I didn't post a copy of the line with the error on my second attempt to paste the code on here. I was testing the program without the equation that keeps giving me the error. The program is running perfectly until it gets to the line in bold.

My professor gave us that exact formula to use in our program to find the monthly payment options. The purpose of that line is to calculate what the users payments would be for 24 months. It needs to also do the same for 36, 48 & 60 months, however; I can't get it to run properly for 24 months.

cout <<(12) (13) << endl; //with your error code: I assume that the compiler thinks you mean to call a function that takes an int
//but it has no idea what function you intend to call.

the compiler is like what the hell?
It could also think you were calling a function, hence the error code. like () you are calling 2 functions, and passing a value, but what function do you want
to call? You haven't specified.. strlen, strcat, you get the point
You probably have to divide or multiply, or missing some operator.
That's the problem I think, check the formula again.
luck