Question: using C++, need help to create this program following these instructions. Assignment Program 2: Create a program that calculates the Sin & Cos table for
Assignment Program 2: Create a program that calculates the Sin & Cos table for every 15 degree increments. You will need to use the setw() command to create a display looking like the following. Note that C++ does not know the value of Pi and can only calculate the Sin or Cos of radians, not degrees. For the value of Piyou need to create a loop that calculates Pi by the method we used in class. Pi= (4.0/1.0)-(4.0/3.0)+(4.0/5.0)-etc. You will need to bring this out many places to get Pi accurately to Pi=3.14159. Over all the program needs a loop for Pi and then calculate the Sin & Cos ever 15 degrees. Ang Sin(Ang) Cos(ang) 0.2588 0.9659
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
