Question: Rectangular to Polar Conversion Write a program that reads the rectangular components of a 2D vector into a rank 1 array rect (rect(1) will contain

Rectangular to Polar Conversion Write a program that reads the rectangular components of a 2D vector into a rank 1 array rect (rect(1) will contain the component Vx and rect(2) will contain the component Vy) and converts the vector from rectangular to polar form, storing the result in a rank 1 array polar. The first element of polar should contain the magnitude of the vector, and the second element should contain the angle of the vector in degrees. After the conversion, display the contents of array polar. (Hint: Look up function ATAN2D in Appendix B.) Test your program by converting the following rectangular vectors to polar form:

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 Programming Questions!