so i'm working on this program for my C++ class (didnt put this in apps, program, game b/c i dont have a question about coding anything) and i need to do some math to compute some things related to a mortgage.
here is a pic of someone's working version: poopers.JPG
things i know how to do:
convert the IR to decimal (divide by 1200, because the input is APR, and i want it in months)
use the amortization calc to get the monthly payment
find the interest paid and obviously find the difference b/t them...
what i dont know how to do:
ok...you have the monthly payment of: 362.351...but how do you determine how much of that is paid toward interest and how much is paid towards principle?
also, i know after i find those two values i subtract ONLY the principle from the total loan amount...EX: line1 - int paid that month was 55, princ was 307.351...only subtract 307.351 from 12000 (loan amt)
thnks
here is a pic of someone's working version: poopers.JPG
things i know how to do:
convert the IR to decimal (divide by 1200, because the input is APR, and i want it in months)
use the amortization calc to get the monthly payment
find the interest paid and obviously find the difference b/t them...
what i dont know how to do:
ok...you have the monthly payment of: 362.351...but how do you determine how much of that is paid toward interest and how much is paid towards principle?
also, i know after i find those two values i subtract ONLY the principle from the total loan amount...EX: line1 - int paid that month was 55, princ was 307.351...only subtract 307.351 from 12000 (loan amt)
thnks