Question: thank you for your time. language is java. Ql1 Qi Qill aiV Write a program that takes the x and y coordinates of a point

thank you for your time. language is java.  thank you for your time. language is java. Ql1 Qi Qill
aiV Write a program that takes the x and y coordinates of

Ql1 Qi Qill aiV Write a program that takes the x and y coordinates of a point in the Cartesian plane as doubles and prints a message telling either: the axis on which the point lies . or the quadrant in which it is found. If the point lies in a quadrant the program should also calculate and print the distance between the point and the origin (point [O,O]) using the following formula: See sample runs of the program: Run#1 Enter value of x:0 Enter value of y:0 The point (0.0,0.0) is at intersection of x and y axis Run#2 Enter value of x: -1.0 Enter value ol Y: 2. 5 The point (-1.0,-2.5) is in quadrant 3; an d the distance between (0,0) and (-1.0,-2.5) is 2.69 Run#3 Enter value of x: 0.0 Enter value of y: 4.8 The point (0.0,4.) is on the y axis

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!