Project of C programming

Write a program that helps the user to consider a range of interest rates for a mortgage over 20, 25, and 30 years. Prompt the user to enter the amount of the loan and a minimum and maximum interest rate (in whole percentages). Then write a text file containing a table of the form:

Loan Amount: $50,000.00

Interest

Rate Duration

(years) Monthly

Payment Total

Payment

10.00 20 ________

________

10.00 25 ________ ________

10.00 30 ________ ________

10.25 35 ________ ________

.

.

.

The output file produced should contain payment information on a particular loan amount for interest rates from the minimum rate to the maximum rate in increments of 0.25%. The loan durations should be 20, 25, and 30 years. Output the monthly payment and total payment values rounded to two decimal places. You may neglect the fact that because the monthly payment must be rounded, the final payment will be slightly different. The formula for calculating monthly payment is

where;

P = principal (the amount you borrow)

i = monthly interest rate (1/12 of the annual rate)

n = total number of payments