Question: **Please provide me with the C program loanCalcStruct.c as well as the screenshot (mentioned under Note:), the directions/hints are all below ( loanCalcStruct.c is only

**Please provide me with the C program loanCalcStruct.c as well as the screenshot (mentioned under "Note:"), the directions/hints are all below (loanCalcStruct.c is only one of the programs coinciding with the directions below):

**Please provide me with the C program loanCalcStruct.c as well as the

screenshot (mentioned under "Note:"), the directions/hints are all below (loanCalcStruct.c is only

hints/directions

--------------------------------------------------------------------------------------------------------------------------

Program without array:

#include #include #include

int main() { double loanAmount,interestRatePerYear; // Number of payments int n; // A: Payment amount per period // r: interest rate per period double A,r; double INT[1000],B[1000],P[1000];

printf("Enter amount of loan : $ "); scanf("%lf",&loanAmount);

printf("Enter interest rate per year : %% "); scanf("%lf",&interestRatePerYear);

printf("Enter number of payments : "); scanf("%d",&n);

// Rate of interest r=interestRatePerYear/1200;

// Amount payable in a month A=loanAmount*((r*pow(1+r,n))/(pow(1+r,n)-1));

B[0]=loanAmount;

// Monthly interest payment printf("# \t Payment \t Principal \t Interest \t Balance "); for(int i=1;i

// For output alignment if(INT[i]/10.0

printf(" "); }

return 0; }

--------------------------------------------------------------------------------------------------------------------------

one of the programs coinciding with the directions below): hints/directions -------------------------------------------------------------------------------------------------------------------------- Program

http://www.bankrate.com/calculators/mortgages/loan-calculator.aspx

without array: #include #include #include int main() { double loanAmount,interestRatePerYear; // Number

of payments int n; // A: Payment amount per period // r:

http://www.vertex42.com/ExcelArticles/amortization-calculation.html?

interest rate per period double A,r; double INT[1000],B[1000],P[1000]; printf("Enter amount of loan

Implement this C program by 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

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!