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 05:00
Which best explains why a digital leader would join a society specializing in technology
Answers: 1
question
Computers and Technology, 23.06.2019 05:20
What did creator markus “notch" persson initially call his game
Answers: 1
question
Computers and Technology, 23.06.2019 17:30
Write pseudocode to represent the logic of a program that allows the user to enter a value. the program multiplies the value by 10 and outputs the result.
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
1. web and mobile applications allow users to be actively engaged in an online activity. a true b false 2. some examples of business applications purposes are to collaborate, share files, meet virtually in real-time, and accept payments. a true b false 3. an education application would most likely do which of the following? a allow users to watch popular movies and tv shows b connect users with social and business contacts c confirm users' travel plans d teach users a new language 4. a uniform resource locator (url) is how the internet knows where to take users when an address is typed into a browser. a true b false 5. deon is required to provide the citation information for his sources. what type of information should he collect from his sources? a author name, title, date of publication, date of access, url b connections to background information c interesting facts and statistics d notes on important information
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
Biology, 07.07.2021 22:00
question
History, 07.07.2021 22:00
question
Mathematics, 07.07.2021 22:00
question
Mathematics, 07.07.2021 22:00
Questions on the website: 13722360