Write a program in C++ that reads an angle x (in radians) from the keyboard, the
ID: 3682941 • Letter: W
Question
Write a program in C++ that reads an angle x (in radians) from the keyboard, then User will be promptedto choice the method to calculate the cosine of the angle, there will be three different methods:
1. First method: call the cosine function from C++ library function directly.
2. Second method: write user defined function to use the first five terms of this series.
3. Third method: write user defined function to use terms from the series as long as the absolute value of a term is greater than 0.0001.
Print the result (angle and cosines of angle) to screen for different methods, for third mehod,also print the number of terms used in the calculation.
cos xE 2! 4! 6!Explanation / Answer
******Try this code*****
Hope this will help to you!
/ Pre-processor DirectivesRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.