So what's the problem?
We use code blocks and I am having a hard time understanding where to start; how to write the functions for degrees to radian or radians to degrees, sin and cos. I know I need to build header files and then use them to satisfy my main file. If you can help me with the functions, I can try and do the rest.
If you can't even create a function to convert from radians to degrees, there's no way you'll be able to do that assignment. Give up hope now.
Okay, maybe a little harsh for me to say that, but really...
Code:#define PI 3.14159265312 double todegrees(double radians) { return 180.0 * radians / PI; }
doing the iterations for sin and cos should be easy too...
where someinlinefunctionhere is one of the functions given in your doc fileCode:int i; double value = 0.0; for (i=0; i<100; i++) value += someinlinefunctionhere((double)i);