Question: Write a program to determine the distance (in km) a surface-to-air missile must travel to reach a given height and angle. The height (in km)

Write a program to determine the distance (in km) a surface-to-air missile must travel to reach a given height and angle. The height (in km) & angle are given as inputs. To compute distance: distance = height / sin(angle) Note: the angle must be in radians; prompt for the angle in degrees and use this formula to convert: radians= (pi/180 degrees) * angle

Note: be sure to import the math library Save this as missile.py

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!