What exactly is this question asking?
The wording of this question is kind of confusing me.
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.
Is the question asking me to get the user to input the following 2 things? How much the user has to pay MONTHLY for their mortgage and how much total is left on their mortgage? When it says display the amount of payment that goes to interest does that mean interest MONTHLY? So would I use this equation: ((monthlymortgage*12)*0.0749)/12
And then just subtract that from the monthlymortgage to determine the amount that goes to "principal" per month?
Sorry for bad english.