Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Write a c program using arrays, and loops to compute the monthly payment and the

ID: 3575164 • Letter: W

Question

Write a c program using arrays, and loops to compute the monthly payment and the total payment for a bank loan ask the user to enter the following data:
a. Amount of loan b. Duration of loan in months c. Interest rate of loan
Your program should read the loan one a time , perform the required computation, and print the values of the monthly payment and the total payment. Test your program with at least the following data:
Loan. Months. Rate
16000. 300. 6.50 24000. 360. 5.25 30000. 360. 5 42000. 360. 5 22000. 360. 4.5 100000. 360. 4.25

a). The formula for monthly payments is
Monthpay =Ratem*expm^(months)*loan -------------------------------- expm^(months) - 1



Where Ratem. = rate / 1200.0
expm = (1.0 - Ratem)
Your report should be :
Loan amount$
Interest. Duration. Monthly. Total Rate. (Years). Payment. Payment Write a c program using arrays, and loops to compute the monthly payment and the total payment for a bank loan ask the user to enter the following data:
a. Amount of loan b. Duration of loan in months c. Interest rate of loan
Your program should read the loan one a time , perform the required computation, and print the values of the monthly payment and the total payment. Test your program with at least the following data:
Loan. Months. Rate
16000. 300. 6.50 24000. 360. 5.25 30000. 360. 5 42000. 360. 5 22000. 360. 4.5 100000. 360. 4.25

a). The formula for monthly payments is
Monthpay =Ratem*expm^(months)*loan -------------------------------- expm^(months) - 1



Where Ratem. = rate / 1200.0
expm = (1.0 - Ratem)
Your report should be :
Loan amount$
Interest. Duration. Monthly. Total Rate. (Years). Payment. Payment
a. Amount of loan b. Duration of loan in months c. Interest rate of loan
Your program should read the loan one a time , perform the required computation, and print the values of the monthly payment and the total payment. Test your program with at least the following data:
Loan. Months. Rate
16000. 300. 6.50 24000. 360. 5.25 30000. 360. 5 42000. 360. 5 22000. 360. 4.5 100000. 360. 4.25

a). The formula for monthly payments is
Monthpay =Ratem*expm^(months)*loan -------------------------------- expm^(months) - 1



Where Ratem. = rate / 1200.0
expm = (1.0 - Ratem)
Your report should be :
Loan amount$
Interest. Duration. Monthly. Total Rate. (Years). Payment. Payment

Explanation / Answer

#include<stdio.h>

#include<math.h>
void main()
{
float months,rate,ratem,expm;
double loan,monthpay,Total;

Printf(" Enter amount of loan");
scanf("%f",&loan);
Printf(" Enter Duration of loan in months");
scanf("%f",&loan);
Printf(" Enter Interest rate of loan");
scanf("%f",&loan);
ratem=rate/1200.0;
expm=1.0-ratem;
monthpay=(ratem*(pow(expm,months))*loan)/(pow(expm,months)-1);
Total= loan +monthpay*months;
printf(" Loan amount $ %f",loan);
printf(" Interest Rate %f Duration(Years) %f Monthly Payment %f Total payment %f ",rate,months/12,monthpay,Total);


}

please check, once again,i removed the clrscr() and getch();

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote