Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 1 (10.54 KiB) Viewed 62 times
Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 2 (16.55 KiB) Viewed 62 times
Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 3 (16.55 KiB) Viewed 62 times
Write a function that has as input a real number representing an angle in degrees. The function returns the corresponding angle in radians. Name the function "deg2rad".
Write a program that calls the function from Question 3 above. The program should ask the user to provide an angle in degrees. Calling the function above, it then converts the angle to radians and calculates the sine. cosine, and tangent of the angle and prints out the results. You can import the math library/module and use the trigonometric functions. There is no need to retype the function from Question 3.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!