User Profile

Collapse

Profile Sidebar

Collapse
UncleAl
UncleAl
Last Activity: Oct 31 '06, 03:17 PM
Joined: Oct 25 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • UncleAl
    replied to incorrect output
    in C
    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...
    See more | Go to post

    Leave a comment:


  • UncleAl
    replied to incorrect output
    in C
    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?...
    See more | Go to post

    Leave a comment:


  • UncleAl
    started a topic incorrect output
    in C

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...