Thanks very very much. I have been trying to still get this to work with your guidance and can't seem to. At the risk of souding foolish, if my variables are as follows, can you help me get the algorithm right?
int loan = 200000;
int y = 30;
int monthlyterm = y*12;
double i = .00575; //interest rate
double monthlypayment;
monthlypayment = (loan*i)/(1-pow(1+i,-monthlyterm)); CAN'T...
User Profile
Collapse
-
Thanks I think 1 or 3 is my problem. If I use a mortgage calulator with 200,000 at 5.75 for 30 years it is 1,167 payment but my program gives 1317.2. How can I tell if 1 or 3 is my problem?...Leave a comment:
-
incorrect output
Hello I am working a C++ program and the calculation is giving me the wrong total of 1317.2 when it should be 1167.1. Can you look at my code and algorithm to see what I am missing or doing wrong? I cant seem to figure this out. Thanks very much.
...Code:#include <iostream> #include <math.h> using namespace std; int main() { int loan = 200000; int y = 30; int monthlyterm
No activity results to display
Show More
Leave a comment: