I'm trying to answer forever, but something goes wrong..Firsy=t of all, we're not allowed to use if yet. Here is the partia code:
insert
Code:
int main(int argc, char* argv[])
{
float Acurr = 1, Aest;
float i, j;
int k, l = 0;
for (i = 1, j = 2, k = 0; j < 10, k < 1001; i = Acurr, j++, k++){
//l++;
Acurr = i + sqrt(i) ;
Aest = (pow(j,2))/4 ;
cout << "for n = " << k + 1 << endl;
cout << "An as calculated by the series is: " << Acurr << endl;
cout << "An as calculated by the estimate is: " << Aest << endl;
cout << "The absolute difference between the two calculations is: " << abs(Acurr - Aest);
cout << endl;
//}
}
system ("pause");
return 0;
}