Question: 17. The class PlanePoint has a single constructor that takes two int parameters, the x-, and y- coordinates in a Cartesian coordinate system. The parameter

17. The class PlanePoint has a single constructor that takes two int parameters, the x-, and y- coordinates in a Cartesian coordinate system. The parameter values range between -1024 and 1023, inclusive. The PlanePoint class has a parameterless methods named getRadius and getTheta that return double values, the radius (r) and theta (0) coordinates for the point in polar coordinates. Create an instance of PlanePoint and call the method getTheta. Store the value returned in the variable theta declared below. (For extra credit, create the point somewhere along the line y - 2r-5.) double theta
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
