Write a sketch that converts degrees to radians. Write a function called “degreesToRadians” that takes a value in degrees and returns a value in radians. Call this function in your code to make the conversion. The degreesToRadians function is not to produce the screen output. Do that in separate code.
Output to the screen (NOT the console) the result of the function calls like this on multiple lines:
45 degrees is 0.785375 radians.
30 degrees is … radians.
Call your function and display the output for the following values:
15, 30, 45, 135, 212, 180, 270.
Name your sketch: Deg2Rad
Go back to Loops 2