Computers and Technology

Write a C program to calculate monthly payment and print a table of payment schedule for a fixed rate loan.

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 a mortization schedule (also called payment schedule) containing payment number, monthly payment, principal paid, interest paid and new balance

at each row.

monthly payments are equal. The way to calculate monthly payment and other values for each row are provided in Appendix.

The C program can be imple mented within 80 lines of code.

If your program is longer than 80 lines, you may need to think about how to simplify your program.

Hint: To print out a percentage %, please use %%. You may need to use C math library to calculate the powers of numbers.

To compile a C program using math library, you must add option lm at the end of the cc command to link math library.

Question:

1)Implement this C program without the usage of arrays .Name the is C program as loanCalc. c

2)Implement this C program using at least three arrays

to store the interest, principle and balance foreach payment respectively. For example , interest [0] stores the paid interest in

the first payment. Name this C program as loanCalcArr. c

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 paid interest in

the first payment. Besides, please use three pointers to visit the elementin

the three arrays separately.

Name this C program as loanCalcPtr. c

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 21:30, karleebowling316
Asuccessful format string attack attempted to steal user account information by reading from unauthorized memory. answer the followings with proper explanation a)this attack will lead to violation of which security policies?
Answers: 2
image
Computers and Technology, 22.06.2019 07:30, akluke6059
Events and conditions that happen within an organization that are somewhat easier to deal with when responding to change are called
Answers: 1
image
Computers and Technology, 22.06.2019 16:30, jngonzo1226
Which of the following statements best describes it careers?
Answers: 2
image
Computers and Technology, 22.06.2019 22:40, ihatemylife0
Least square fit to polynomial write a function leastsquarefit3pol that solves a linear system of equations to find a least squares fit of a third order polynomial to an experimental data set given as two row arrays. the function leastsquarefit3pol must explicitly solve a set of linear equations and cannot use polyfit. there should be no restriction on the size of the problem that can be solved.
Answers: 1
Do you know the correct answer?
Write a C program to calculate monthly payment and print a table of payment schedule for a fixed rat...

Questions in other subjects:

Konu
Mathematics, 26.10.2020 18:20
Konu
Mathematics, 26.10.2020 18:20
Konu
Mathematics, 26.10.2020 18:20
Konu
Mathematics, 26.10.2020 18:20
Konu
Chemistry, 26.10.2020 18:20