Question: create a java program that will prompt the user for 2 real numbers representing an x-coordinate and a y-coordinate. Your program should then tell the

create a java program that will prompt the user for 2 real numbers representing an x-coordinate and a y-coordinate. Your program should then tell the user where this (x, y) coordinate point is, using the exact format shown below. The output should be one of the following: state the quadrant the point is in (ie Quadrant I, II, III or IV) state that the point is on the x-axis, or on the y-axis (whichever is appropriate) state that the point is the origin Run the program 7 times to verify that all possible messages can be output. Your output must show that you were able to get all 7 messages (use the loop below to simplify testing) Output format: For example, user input of x = 3.1, y = -5.7 would result in (3.1, -5.7) is in Quadrant IV being printed, and x = 7.8, y = 0 would result in (7.8, 0) is on the x-axis being printed. Hints: 1. use an if else if else if - statement. 2. use this for loop to simplify testing int i; for (i = 1; i <= 7; i++) { your code goes here }

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!