Alright, I am new to C++, and thought I would get a book and start learning it. I was doing some of the practice exercises at the end of the chapter, and I am stumped.

I have to let the user enter a loan amount and loan period in number of years and display the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.


Example of the Output:
Loan Amount: 1000
Number of Years: 5

Interest rate Monthly Payment Total Payment
5% 188.71 11322.74
5.125% 189.28 11357.13
etc...


I have got the basics, and I know I need to use a loop, but I am pretty lost. If someone could point me in the right direction I would appreciate it.

What I currently have

#include <iostream>
using namespace std;

int main()
{
cout << "Loan Amount:";
double loan;
cin >> loan;

cout << "Number of Years: ";
double years;
cin >> years;
double i = .05;
do {
loan + years;
i + 0.125;
cout << "Interest Rate\t\t" << "Monthly Payment\t\t" << "Total Payment\n" << i <<endl;
system("PAUSE");

}while (i <= .08);
}