Question: [20 pts) Question 1 Write a Python program that performs the following 5 times: Picks 10 random numbers between 20 and 30 and prints their

 [20 pts) Question 1 Write a Python program that performs the
following 5 times: Picks 10 random numbers between 20 and 30 and

[20 pts) Question 1 Write a Python program that performs the following 5 times: Picks 10 random numbers between 20 and 30 and prints their average. Hint: You will need a nested For Loop [20 pts] Question 2 The trigonometry book says: sin^2(t) + cos^2(t) = 1 Write a Python program that verifies the formula with the help of the Python Math library. Note that the library trigonometric functions act on the angles in radians. Your program should perform the following steps 3 times: 1. Pick a random number between 0 and 180 degrees representing an angle in degrees, say Dangle 2. Convert the angle from degrees to radians, say Rangle 3. use the Math library to find and print the values of sin(Rangle) and cos(Rangle), and 4. compute and print the value of the above expression: sin^2(Rangle) + cos^2(Rangle). You can then visually verify if the result printed is 1 (or close it). Hint: angle_in_sadians = (angle_in_degrees. Pj/180

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!