Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Basically I need to calculate the cos (x) using Taylor series in C++ The 1st fun

ID: 3558291 • Letter: B

Question

Basically I need to calculate the cos (x) using Taylor series in C++

The 1st function (1) Reads in a angle in Radians and its restricted to the first 7terms.

Function (2) must reuse the same code as function (1) and calculate a term >0.067, it must print out the final result, the number of terms used and finally it must use a while loop for this function.

I need a menu set up that would the user to pick function (1) , (2) or case 3 the either math library.

and finally I will need a print menu function

Explanation / Answer

#include #include using namespace std; double fac(int n) { double f=n; while (--n)f*=n; return f; } int main() { double long x; cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote