Question: Question: Implement this C program by defining a structure for each payment. the structure should have at least three members for the interest, principle and

Question:
Implement this C program by defining a structure for each payment. the structure should have at least three members for the interest, principle and balance separtately. and store all the payments in a structure array (the max size of which could be 100). Name this C program as loanCalcStruct.c
Write a C program to calculate monthly payment and print a table of payment schedule for a fixed rate loan, which performs a similar task as in the link below: http://www.bankrate.com/calculators/mortgages/loan-calculator.as In this C program, the input and output are defined as following: . Input: amount of loan, interest rate per year and number of payments . Output: a table of amortization schedule (also called payment schedule) containing payment number, monthly payment, principal paid, interest paid and new balance at each row The attached screenshot below shows a sample of the output. uans-MacBook-Pro:PC yuanlong$ ./loanCalc nter amount of loan: $ 500 nter Interest rate pe r year : % 7.5 nter number of payments :5 ontly payment should be 101.88 EEzEEsEEzzEzzszAMORTIZATION SCHEDULE zzzzsEEsszsszzzz-- Payment $101.88 $101.88 $101.88 $101.88 101.88 Principal $98.76 $99.38 $100.00 $100.62 Interest $3.12 $2.51 $1.89 $1.26 Balance $401.24 $301.87 $201.87 $101.25 0.00 101.25 0.63
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
