作业帮 > 英语 > 作业

英语翻译Write a program that reads the amount of a monthly mortg

来源:学生作业帮 编辑:作业帮 分类:英语作业 时间:2024/05/09 13:37:36
英语翻译
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.
编写一个程序,使之能显示同每月按揭贷款还款额以及欠款余额,然后显示还款中有多少是利息还款,有多少是本金还款(即有多少还款是真正用来减少债务的).假设年利率是7.49%.命名一个常量来代表利率.注意还款按月进行,所以利率只是年利率7.49的1/12.