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, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 17:30
Working on this program in python 3.7: a year in the modern gregorian calendar consists of 365 days. in reality, the earth takes longer to rotate around the sun. to account for the difference in time, every 4 years, a leap year takes place. a leap year is when a year has 366 days: an extra day, february 29th. the requirements for a given year to be a leap year are: 1) the year must be divisible by 42) if the year is a century year (1700, 1800, the year must be evenly divisible by 400some example leap years are 1600, 1712, and 2016.write a program that takes in a year and determines whether that year is a leap year.ex: if the input is 1712, the output is: 1712 is a leap year. ex: if the input is 1913, the output is: 1913 is not a leap year. your program must define and call the function isleapyear(useryear). the function should return true if the input year is a leap year and false otherwise.
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
How do you take a green screen out of the video while editing?
Answers: 2
question
Computers and Technology, 23.06.2019 12:30
What is the difference between the internet and the world wide web?
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
History, 20.08.2021 05:40
question
Mathematics, 20.08.2021 05:40
question
Social Studies, 20.08.2021 05:40
question
Mathematics, 20.08.2021 05:40
question
Chemistry, 20.08.2021 05:40
question
Mathematics, 20.08.2021 05:40
Questions on the website: 13722367