Question: java Write a program that reads a laan amount, payment amount, and interest rate as inputs and outputs the number of payments required until the
Write a program that reads a laan 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 $10200 before a payment is applied. All values are doubles: Ex if the input is: 1000.050.00.03 the output is: 31 payments Ex. If the input is: 50.0100.00.02 the output is
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
