New to C++ and need some help

This is my first program ever and I am having some problems with it.

http://pic9.picturetrail.com/VOL298/...4/82904752.jpg

Here is what I have come up with so far.

Code:

`#inlcude<iostream>`

#include<math.h>

int main()

{

float i;

double x, term, sum;

cout <<"enter a value for x"<<endl;

cin>>x;

for(i= 0.1; i<=1.0; i=i+0.05)

need more code

return 0;

}

Thats basically as far as I get.

In the examples I have they use

Code:

`"double x,xi,xe,dx,term,sum,ex;"`

xi=0.1; xe=1.0; dx=0.05

instead of how I did it above,

then they specify

Code:

`for(x=xi; x<=xe; x=x+dx)`

Is that the same as how I did it?

Thanks for any help or suggestions in advance.