In an orthogonal system, given a point, a line from that point to the origin forms an angle with the positive x-axis. The line is said to terminate, either in one of the four quadrants or to coincide with the positive x-axis, positive y-axis, negative x-axis, or negative y-axis.
Write a java program that prompts the user for a given angle and determines the location of the line, whether it is in one of the four quadrants or it lies on the positive x-axis, positive y-axis, negative x-axis or negative y-axis. For example, if the input angle is 90°, then the line lies on the positive y-axis. If the angle is -30°, then the line lies in the fourth quadrant and so forth. Your program must be able to handle angles of any values, such as -783.87.