Guest_imported
New member
- Jan 1, 1970
- 0
I have started the basic C++ program. One of my assignments is to write a program to calculate and pring the balance remaining after the first, second, and third monthly payment. The balance is a formula that I am having trouble putting into a simple C++ language.
This is the formula:
bal k = pmt [1 - (1 + i) k-n]/i
bal k = is the balance remaining after the kth payment k
k = is the payment number (1, 2, 3, ...)
pmt = amount of the monthly payment
i = interest rate per month
n = total number of payments to be made
In the (bal k) is the k is an exponent on the lower right hand of the bal. So in the book it shows bal, with a miniture k on the lower right hand of it.
Also the (k - n), within the formula, is an exponent of
(1 + i). How can I display the formula with the exponents beside them.
I suppose in the (bal k) it is suppose to display the balance and attached with a miniature (payment number) on the lower right hand of bal. I know this is probably confusing, if you do know what I am talking about, please remember I am a begginner in the application of C++. If you can, please teach me how and why you received the answer that you did. Thank you for your time.
This is the formula:
bal k = pmt [1 - (1 + i) k-n]/i
bal k = is the balance remaining after the kth payment k
k = is the payment number (1, 2, 3, ...)
pmt = amount of the monthly payment
i = interest rate per month
n = total number of payments to be made
In the (bal k) is the k is an exponent on the lower right hand of the bal. So in the book it shows bal, with a miniture k on the lower right hand of it.
Also the (k - n), within the formula, is an exponent of
(1 + i). How can I display the formula with the exponents beside them.
I suppose in the (bal k) it is suppose to display the balance and attached with a miniature (payment number) on the lower right hand of bal. I know this is probably confusing, if you do know what I am talking about, please remember I am a begginner in the application of C++. If you can, please teach me how and why you received the answer that you did. Thank you for your time.