Need help C++

Here is the question
i would really appreciated if someone can provide me with code. thanks in advance.
this is for C++:

write a program that lets the user enter loan amount
and loan period in number of years and display the monthly and total payments for
each interest rate from 5% to 8%, increment of 1/8.if you enter
the loan amount 10000 for five years,it will display as follows:
loan amount: 10000
Number of years:5

interest Rate:
5%
5.125%
5.25%
7.85*
8.0%
Monthly Payment
188.71
189.28
189.85
202.16
202.76
Total Payment:
11322.7
11357.13
11391.59
12129.97
12165.83

Last edited on
What have you got so far?
i don't even know how to start
Sure you do...
1
2
3
4
5
6
7
8
9
10
#include<iostream>

using namespace std;

int main()
{
    //code
    cin.get();
    return 0;
}
Last edited on
not really i mean i don't know how write a code formula for monthly payment and total payment.
do i need to use while loop for this problem? thanks for the reply
i have come up this far rightnow.

#include "stdafx.h"

#include<iostream>

using namespace std;



int _tmain(int argc, _TCHAR* argv[])


{
double interest_rate,monthly_payment,total_payment;
int loan_amount,loan_period;
cout<<"Enter a loan amount:"<<endl;
cin>>loan_amount;
cout<<"Enter loan period:"<<endl;
cin>>loan_amount;










system("pause");
return 0;
}
Last edited on
Topic archived. No new replies allowed.