Question: Can you please write this program for me in C++? Calculate sine, cosine and exponential values for the variable x using for loop structure. The
Calculate sine, cosine and exponential values for the variable x using for loop structure. The required equations are given by: cos x = 1 - x^2/2! + x^4/4! - x^6/6! + .. almostequalto Sigma ^N _n = 0 (-1)^n x^2n/(2n)! sin x = x - x^3/3! + x^5/5! - x^7/7! + .. almostequalto Sigma ^N _n = 0 (-1)^n x^2n + 1/(2n + 1)! 1. Prompt the user to enter x value in degrees. 2. Validate that the x value is a positive number 3. Calculate sin(x), cos(s) and exp(x). 4. Ask the user if s/he wants to continue or not. if the user enters 'y' or *Y* as his/her choice, repeat the above procedure, otherwise terminate the program
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
