Computers and Technology, 11.04.2020 04:27 trashellyoung
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
Answers: 2
Computers and Technology, 21.06.2019 15:00, cia196785920
Look at the circuit illustrated in the figure above. assume that the values of r1 and r2 are equal. if you connect your meter’s test probes to points a and b in the circuit, which of the following voltages would you measure
Answers: 1
Computers and Technology, 23.06.2019 00:30, haileesprague575
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
Answers: 1
Computers and Technology, 23.06.2019 13:30, jhitotw
What is the primary difference between the header section of a document and the body? a. the body is displayed on the webpage and the header is not. b. the header is displayed on the webpage and the body is not. c. the tag for the body is self-closing, but the tags for the headers must be closed. d. the tag for the header is self closing, but the tag for the body must be closed.
Answers: 3
Write a C program to calculate monthly payment and print a table of payment schedule for a fixed rat...
Mathematics, 26.04.2020 01:14
Chemistry, 26.04.2020 01:14
Mathematics, 26.04.2020 01:14
Biology, 26.04.2020 01:14