Please read the sticky posts at the top of this forum. In short, we don't do your work for you. Write what you can, ask questions about problems you encounter.
Here's two hints to get you going. You'll want to write a separate factorial function (many examples abound) and you'll need a way to multiply alternately by +1 and -1 in the loop that runs your sin/cos functions. (Or is that three hints?)
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228
Read your compiler errors. Fix those. I think you'll find the code is working. It seems overly complex in some ways, but it seems to work.
When you post code, please wrap it with code tags, like:
[code]
your code goes here
[/code]
vmanes
Posting Virtuoso
1,914 posts since Aug 2007
Reputation Points: 1,268
Solved Threads: 228