answersLogoWhite

0


Best Answer

Basically you write a series of if statements, to cover the different cases. For example, in Java, something like this:

...

if (x = 0)

System.out.println("On y-axis")

else if (y = 0)

System.out.println("On x-axis")

else if (x > 0)

if (y > 0)

System.out.println("First quadrant")

else

...

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you make a program that will take the value of x and y and the output must show in what quadrant does the point exists?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

In which quadrant is the point (-5 6)?

In which quadrant is the point (-5, 6)


What is the quadrant location of the point 13?

The point (1,3) is located in the first quadrant.


What quadrant contains the point 4 5?

Quadrant I


In which quadrant is the point of origin?

The point of origin is not in any quadrant. In fact, any point on the X or Y axis is not in a quadrant. In order for a point to be in Q1, Q2, Q3 or Q4, it must not be on an axis.


What quadrant is the point 2 3 located in?

The point (2, 3) is located in the 1st quadrant


What is quadrant does the point (-2-1) lie?

-1


In which quadrant does the point (19 20) lie?

In the 1st quadrant


How can you tell the quadrant in which a point is located without refferring to the graph?

If the signs of the Cartesian coordinates are: (+, +) => first quadrant (-, +) => second quadrant (-, -) => third quadrant (+, -) => fourth quadrant. If one of the coordinates is 0 then the point is on an axis and NOT in a quadrant. If both coordinates are 0 then the point is at the origin. If the location of the point is given in polar coordinates, then you only need the angle. Suppose the principal angle is Φ, then 0 < Φ < 90 degrees => first quadrant 90 < Φ < 180 => second quadrant 180 < Φ < 270 => third quadrant 270 < Φ < 360 => fourth quadrant. Again, if the angle is 90, 180 etc degrees, the point is on an axis. If the magnitude is 0 then the point is at the origin.


What is the converse if a point is in the first quadrant then its coordinates are positive?

Converse: If the coordinates are positive, then the point is in the first quadrant


What quadrant is the point 2 -1 located in?

3


If a point lies on the x axis what quadrant is it in?

In general, any point that falls on the axes, is not considered to be in any quadrant. This answer is used in most HS texts since it is simple and "works." However, you can define things so that a point with a single zero coordinate will either (1) be common to the two adjacent quadrants, or (2) be part of one and only one quadrant. Here is how to do the second choice. associate the positive x-axis with quadrant I, the positive y-axis with quadrant II, the negative x-axis with quadrant III, and the negative y-axis with quadrant IV. Then what do we do about (0,0)? This is why the first answer works and if most often used. The other possibilities are only mentioned so you can see they exists.


Which quadrant contains the point named 25?

If you mean point (2, 5) then it is in the 1st quadrant on the Cartesian plane