QUESTION

Text
Image


4.17 LAB: Months until payoff Write a program that reads a loan amount, payment amount, and interest rate as inputs and outputs the number of payments required until the loan is paid. Interest is added to current balance before a payment is applied. Ex: If current balance is $\$ 100.00$ and the interest rate is 0.02 , the new balance is $\$ 102.00$ before a payment is applied. All values are doubles. Ex: If the input is: \[ 1000.050 .0 \quad 0.03 \] the output is: 31 payments Ex: If the input is: $50.0100 .0 \quad 0.02$ the output is: 1 payment $397536.2650184 .4 \times 329 y 7$helpin c++ language please tyvm(C++)

Public Answer

R8WJM4 The First Answerer