Write a program to produce three lines of a trigonometry table. The program should request a number of degrees, n, as input and display the values of the sine, cosine, and tangent, function for angles of n – 1, n, and n + 1 degrees. The values should be displayed with five decimal places neatly in labeled columns. A sample output is as follows; [example: if input n = 120, the output in the picture box is shown below] . Can you help me on this? Email me quickly if you are able to solve this question within this 2 hours. Thank you very much!
Degrees Sin Cos Tan
119 0.87462 -0.48481 -1.80405
120 0.86602 -0.50000 -1.73205
121 0.85717 -0.51504 -1.66428
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: