4) Implement this C program vy defining a structure for each payment. The structure should have at least three members for the interest, principle and balance separately. And store all the payments in a structure array (the max size of which could be 100). Name this C program as loanCalcStruct.c. Note: In your answer sheet, for each C program above please attach a screenshot of the output when amount of loan is $2000, interest rate per year is %7.5 and number of payment is 6. • Put the source code of each C program above into your answer sheet. Upload the c file of each C program above into the submission folder of iCollege.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
C program
Don't Sa X
B HW2-S x
9 My Disc x
O assembl X
OC Progra X
(A) Respons X
d Kieta Ha x
4341/viewContent/46295972/View
apter2-1 -.
4) Implement this C progranm vy defining a structure for each payment. The structure
should have
least three members for the interest, principle and balance
separately. And store all the payments in a structure array (the max size of which
could be 100). Name this C program as loanCalcStruct.c.
Note:
• In your answer sheet, for each C program above please attach a screenshot of the output when
amount of loan is $2000, interest rate per year is %7.5 and number of payment is 6.
Put the source code of each C program above into your answer sheet.
Upload the c file of each C program above into the submission folder of iCollege.
bmssion:
Transcribed Image Text:Don't Sa X B HW2-S x 9 My Disc x O assembl X OC Progra X (A) Respons X d Kieta Ha x 4341/viewContent/46295972/View apter2-1 -. 4) Implement this C progranm vy defining a structure for each payment. The structure should have least three members for the interest, principle and balance separately. And store all the payments in a structure array (the max size of which could be 100). Name this C program as loanCalcStruct.c. Note: • In your answer sheet, for each C program above please attach a screenshot of the output when amount of loan is $2000, interest rate per year is %7.5 and number of payment is 6. Put the source code of each C program above into your answer sheet. Upload the c file of each C program above into the submission folder of iCollege. bmssion:
"d21/le/content/2354341/viewContent/46295972/View
Maps B w1-chapter2-1 -.
Appendix:
1. Calculating the monthly payment.
(Note: The following instruction is from http://www.vertex42.com/
ExcelArticles/amortization-calculation.html )
The formula for calculating the payment amount is shown below.
r(1+r)"
A = B
C (1 +r)" – 1
where
A=payment Amount per period (monthly payment)
B = initial Balance (loan amount)
r = interest rate per period
n= total number of payments or periods
Example 1: What would the monthly payment be on a 5-year, $20,000 car loan with a
nominal 7.5% annual interest rate?
B = $20,000 ·
r = 7.5% per year / 12 months = 0.625%= 0.00625 per period
n = 5 years * 12 months = 60 total periods
%3D
%3D
0.00625 (1+0.00625 )60
(1+0.00625 )60–1
A = 20000 *
= 400.76
Transcribed Image Text:"d21/le/content/2354341/viewContent/46295972/View Maps B w1-chapter2-1 -. Appendix: 1. Calculating the monthly payment. (Note: The following instruction is from http://www.vertex42.com/ ExcelArticles/amortization-calculation.html ) The formula for calculating the payment amount is shown below. r(1+r)" A = B C (1 +r)" – 1 where A=payment Amount per period (monthly payment) B = initial Balance (loan amount) r = interest rate per period n= total number of payments or periods Example 1: What would the monthly payment be on a 5-year, $20,000 car loan with a nominal 7.5% annual interest rate? B = $20,000 · r = 7.5% per year / 12 months = 0.625%= 0.00625 per period n = 5 years * 12 months = 60 total periods %3D %3D 0.00625 (1+0.00625 )60 (1+0.00625 )60–1 A = 20000 * = 400.76
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education