You are required to calculate the monthly hire purchase repayment based on the loan amount, the duration of the loan (in years), and the fixed interest rate charged by the bank annually (in whole number). The calculation for the loan repayment is shown below:
Monthly payment= loanAmount + (loanAmount x (rate / 100) x duration)
duration x 12
You should ask from the user to provide all the three input and display the total amount of loan, the duration of the loan, the interest rate, the total amount payable, and the monthly repayment.
1
Expert's answer
2012-08-10T09:23:05-0400
#include<iostream> #include<conio.h> using namespace std; int main() { float loanAmount, interestrate,thedurationoftheloan,Monthlypayment; cout<<"Enter loan Amount: "; cin>>loanAmount; cout<<"Enter interest rate: "; cin>>interestrate; cout<<"Enter the duration of the loan: "; cin>>thedurationoftheloan; Monthlypayment= loanAmount + (loanAmount * (interestrate / 100) * thedurationoftheloan*12); cout<<"Monthly payment = "<<Monthlypayment; getch(); return 0; }
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment