Question: C Programming.Use Code: :Blocks to write a program to solve this problem. Loan payments. Compute a table that shows a monthly payback schedule for a
C Programming.Use Code: :Blocks to write a program to solve this problem.
Loan payments.
Compute a table that shows a monthly payback schedule for a loan. The principle amount of the loan, the annual interest rate, and the monthly payment amount are to be read as inputs. Calculate the monthly interest rate as 1/12 of the annual rate. Each month, rst calculate the current interest = the monthly rate * the loan balance. Then add the interest amount to the balance, subtract the payment, and print this new balance. Continue printing lines for each month until the normal payment would exceed the loan balance. On that month, the payment amount should be the remaining balance and the new balance becomes 0. Print a neat loan repayment table following this format:
Payment schedule for $1000 loan at 0.125 annual interest rate and monthly payment of $100.00
Month Interest Payment Balance
--------------------------------------------------------
1 10.42 100.00 910.42
2 9.48 100.00 819.90
... ... ... ...
10 1.66 100.00 60.99
11 0.64 61.63 0.00
--------------------------------------------------------
Notes: Be careful of your pennies and rounding. Add up your result and make sure it is correct, as if you do NOT do anything special for the rounding issue, your result will be incorrect. The incorrect lines are NOT shown in the Book/PDFs.
SAMPLE INPUT: 1000 .125 100
SAMPLE OUTPUT:
Spring 2016 Problem#4 CSCI1110
----PARTIAL SAMPLE OUTPUT: 8 3.68 100 256.66
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
