英语翻译Write a program that reads the amount of a monthly mortg
英语翻译
Write a program that reads the amount of a monthly mortgage payment and
the amount still owed—the outstanding balance—and then displays the
amount of the payment that goes to interest and the amount that goes to
principal (i.e.,the amount that goes to reducing the debt).Assume that the
annual interest rate is 7.49 percent.Use a named constant for the interest rate.
Note that payments are made monthly,so the interest is only one twelfth of
the annual interest of 7.49 percent.