subject

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

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 12:00
What does the level 1 topic in a word outline become in powerpoint? a. first-level bullet item b. slide title c. third-level bullet item d. second-level bullet item
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
You know the right answer?
Write a C program to calculate monthly payment and print a table of payment schedule for a fixed rat...
Questions
question
Mathematics, 24.09.2019 07:30
question
Biology, 24.09.2019 07:30
Questions on the website: 13722360