Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using VBA write a well structured sub procedure to compute (r,theta), given (x,y). It is relatively straightforward to compute Cartesian coordinates (x, y) on the

image text in transcribed

Using VBA write a well structured sub procedure to compute (r,theta), given (x,y).

It is relatively straightforward to compute Cartesian coordinates (x, y) on the basis of polar coordinates (r, ). The reverse process, however, is not so sim- ple. The radius can be computed by the following formula: 11.6 If the coordinates lie in the first or fourth quadrant (that is, if x >0),then the following simple formula can be used to compute : ? = tan-1(- 126 Chapter 11 Structured Programming: Decisions The difficulty arises with the other two quadrants and when x lowing table summarizes the possibilities 0, The fol- anr Write a well-structured Sub procedure to compute (r, ), given (x.y). Express the final results for in degrees. The following is the start of the problem: Sub Polar (x, y, r, th) Dim x as Double, y As Double, r as Double, th As Double End Sub

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

13. You always should try to make a good first impression.

Answered: 1 week ago