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.

Thats basically as far as I get.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; }

In the examples I have they use

instead of how I did it above,Code:"double x,xi,xe,dx,term,sum,ex;" xi=0.1; xe=1.0; dx=0.05

then they specify

Is that the same as how I did it?Code:for(x=xi; x<=xe; x=x+dx)

Thanks for any help or suggestions in advance.