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.
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
Related questions
Question
C program

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:

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

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images

Knowledge Booster
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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education