What specifically are you having trouble with?
You just need to create a function or two that will perform the maths calculations exactly as stated. Define a value for PI or use the math header file and then assign the stated value for x and plug it into your functions.

Maybe you should try writing out your (attempted) solution as pseudo code first so that you can get your head around what you need to do. Then translating from pseudo code to C should be relatively simple.

I am new to C++ and am still learning it. In college decades ago, I took Cal III and learned about the Maclaurin and Taylor series expansions. A couple of years ago I dusted off my old textbook and wrote a Javascript program that computes normal probability values using the Taylor series expansion. I understand how to write your program.

The issue is whether YOU understand the problem to be solved. Before I could write the normal probability program, I had to compute the normal probabilities BY HAND! I wrote pseudocode to organize the different parts of the program. (One part, for example, is the factorial function.) I drew a flowchart to track the movements of values, specifically, the function calls and function returns. (For example, the call of the factorial function and the return of the factorial function value.)

If you are able to answer the problem's questions by hand, then you can (eventually) write a C++ program to solve the problem. People on this site will be able to help you with the code. If you can't, then no one can help you. Others will be able to solve the problem for you, but you yourself still won't be able to solve it. You would need to go back to calculus and improve your understanding of infinite series.

Why don't you share some pseudocode or anything else you have done to organize your thoughts and ideas about this problem?

const int Pi = 3.14; //Constant
int toDeg(int rad)
{
return rad*180/Pi;
}
float x = 0.3f*Pi; // x = 0.3PI
int n = 10; // n = 10
float valOrig = cos(toDeg(x)); //To degree from radian
float valComp = 0.0f; //Compute this value
float Es = (0.5 x pow(10,2-n); //Es
float Ea = 0.0f; //Compute Ea later
int i=0; //Loop counter
do
{
valComp += pow(-1,i)*pow(x,2i)/fact(2i); //Maclaurin Series
Ea = (valOrig - valComp)/valOrig; //Compute Ea
i++;
}while(Ea < Es);

const int Pi = 3.14; //Constant
int toDeg(int rad)
{
return rad*180/Pi;
}
float x = 0.3f*Pi; // x = 0.3PI
int n = 10; // n = 10
float valOrig = cos(toDeg(x)); //To degree from radian
float valComp = 0.0f; //Compute this value
float Es = (0.5 x pow(10,2-n); //Es
float Ea = 0.0f; //Compute Ea later
int i=0; //Loop counter
do
{
valComp += pow(-1,i)*pow(x,2i)/fact(2i); //Maclaurin Series
Ea = (valOrig - valComp)/valOrig; //Compute Ea
i++;
}while(Ea < Es);

That should be all.

Are you here to make people cheat their professors? :@
OP haven't shown any effort than dumping the question.So he/she will copy and pasted and cheat the prof. That is NOT what Daniweb is all about.

Oh! I thought Nathaniel10's post to be OP's post & hence I gave my step-by-step procedure thinking he didn't understand the question. Guess I screwed up this time past the 30min mark.
Will be careful next time. :(

Oh! I thought Nathaniel10's post to be OP's post & hence I gave my step-by-step procedure thinking he didn't understand the question. Guess I screwed up this time past the 30min mark.
Will be careful next time. :(

Its ok!
there are people who would like to earn degree through another body, that is lying cheating....full garbage :)

If you can manage to scribble up an algorithm, starting with the general term of the Maclaurin/Taylor Series then only the code semantics need to be placed in order.

We need those errors to help you!
BTW have you skimmed though tutorial to get idea of what C++ looks like?
Without doing that will be like someone walking in streets of Dar es salaam going to Manzese and he have never been in Dar es salaam and don't have any map.
He will not get anywhere and will keep "making errors"

INGGRIS
How to connect device scanner with visual basic, its analogy I made button scan in vb and typing button scan in press scanner live and walk .. how? Help ...

I have the following problem.
when i pres buttun printpreview (button 5) the the print preview fires up.
and when i close the print preview without printing and minimize the ...