Page 1 of 1

Write a function that has as input a real number representing an angle in degrees. The function returns the correspondin

Posted: Tue Jul 12, 2022 8:09 am
by answerhappygod
Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 1
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 64 times
Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 2
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 64 times
Write A Function That Has As Input A Real Number Representing An Angle In Degrees The Function Returns The Correspondin 3
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 64 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.