Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
image text in transcribed
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

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

Why are NGOs opposed to MNEs? What should MNEs do?

Answered: 1 week ago

Question

Demonstrate three aspects of assessing group performance?

Answered: 1 week ago