dimanche 22 mars 2015

Help with coding


In this homework, you will design a program to perform the following task: Calculate the monthly payment (M) on a loan given the loan amount (P), the annual percentage rate of interest (r), and the number of monthly payments (N). The program should allow the user to input P, r, and N, and would then compute and display M using the formula: M = P * R * (1 + R)^N/((1 + R) ^N – 1)

where R = r/1200 is the monthly interest rate.


Any ideas?





Aucun commentaire:

Enregistrer un commentaire