Question: A program of Object oriented programming. Answer in detail and stepwise. 2. Create a class Polar that represents the points on the plain as polar

 A program of Object oriented programming. Answer in detail and stepwise.

A program of Object oriented programming. Answer in detail and stepwise.

2. Create a class Polar that represents the points on the plain as polar coordinates (radius and angle). a. Create an overloaded +operator for addition of two Polar quantities. b. Adding" two points on the plain can be accomplished by adding their X coordinates and then adding their Y coordinates. c. This gives the X and Y coordinates of the "answer." d. Thus you'll need to convert two sets of polar coordinates to rectangular coordinates, add them, then convert the resulting rectangular representation back to polar. e. Modify the Program given at slide number 48 for 3D Polar to 3D Cartesian Coordinates conversion. z P(x,y,z) Cartesian P(1,0,4) Polar X = r sin(e) cos(y) Y=r sin(O) sin(y) Z=r cos(0) Projection of r on x-y plane = r sin(0)

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!