Question: please code in java!!! For this lab, you will create a program that takes as an input the x-coordinate and y-coordinate of a point in
please code in java!!!
For this lab, you will create a program that takes as an input the x-coordinate and y-coordinate of a point in a Cartesian plane as integer values. The program prints out the entered values and the location of the point on the plane. The possible locations for the point (the outcomes) are: the origin, on the x-axis, on the y-axis, in the first quadrant, in the second quadrant, in the third quadrant, or in the fourth quadrant. The sample run is shown below. User input is in bold.
Sample output #1: Enter x: 0 Enter y: 0 This point is the origin.
Sample output #2: Enter x: 0 Enter y: 5 This point is on the y axis.
Sample output #3: Enter x: -5 Enter y: 0 This point is on the x axis.
Sample output #4: Enter x: 1
Enter y: 1 This point is in the first quadrant.
Sample output #5: Enter x: -1 Enter y: -1 This point is in the third quadrant.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
