Question: How do u write out a python code for this? You will complete this part using the scripting window, also known as the editor. Create
How do u write out a python code for this? You will complete this part using the scripting window, also known as the editor. Create a new Python file and include comment lines at the top with both of your names, the date, and a sentence explaining what the script does. Your task is to write a program that asks the user for a list of numbers and computes the sine, cosine, and squareroot of each number with the following restrictions: Assume the angles are entered in degrees. This means you will have to convert degrees to radians. If any of the numbers in the list are negative, they should be skipped. Round your answers to 3 decimal places (look up the round function). See https: //docs.python.org/3/library/math.html for documentation about the functions in the math library, including trigonometric functions and converting degrees to radians. Example run: Enter angles (in degrees), separated by commas: [0, -1, 90, 180, -12.3, 42] You entered 6 angles. Angle: 0 Sine: 0.0 Cosine: 1.0 Square root: 0.0 Angle: 90 Sine: 1.0 Cosine: 0.0 Square root: 9.487 Angle: 180 Sine: 0.0 Cosine: -1.0 Square root: 13.416 Angle: 42 Sine: 0.669 Cosine: 0.743 Square root: 6.481
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
