Question: Write a C program to calculate monthly payment and print a table of payment schedule for a ixed rate loan, which performs a similar task

 Write a C program to calculate monthly payment and print a

Write a C program to calculate monthly payment and print a table of payment schedule for a ixed rate loan, which performs a similar task as in the link below 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 princdpal paid, Interest paid and new balance at each row The attached screenshot below shows a sample of che output Enter anount ot loan 500 nter Interest rate per year: s7-s Enter nunber of paynents : 5 Montty paynent should be 101.88 Paynent $101.88 $101.88 $101.88 $101.88 Principal 98.76 $99.38 $106.ee $100.62 Interest $3.12 2.51 $1.89 $1-26 Balance $481.24 301.87 5201.87 $2e1.25 Note: monthly payments are equal The way to calculate monthly payment and other values . The C program can be implemented within 80 lines of code. Ifyour prognam is longer for each row are provided in Appendtx than 80 Nnes you may need to thinkabout how to sim pility your program Hint Toprt out a percentage 96 please use %%. You may need to use C mach library to calculate the powers of numbers To compile a C program using moth ilbrory, you must add option Im ot the end of the cc command to link moth Nbrary. Eg.gce o test test.c-Im Questions: 1) Implement this C program without the usagr of arrays Name this C program as loanCale.c Implement this C program using at least three arrays to store the interest principle and balance for each payment respectively For example, interest 0] stores the pakd interest in the first payment. Name this C program as loanCalcArr.c 2) 3) Implement this C program using at least three arrays to store the interest principle and balance after each payment respectively. For example. interest 0) stores the pald interest in the first payment. Besides, please use three pointers to visit the element in the three arrays separately, Name this C program as loanCalcPtr.e. 4) Implement this C program by defining a structure for each payment. The structure i should have at least three members for the interest, principle and balance separately And store all the payments in a structure array (the max size of which could be 100) Name this C program as loanCaleStruct.c

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!