Question: Write a program that tells the user which quadrant a pair of variables is in if the variables x and y are to be plotted

 Write a program that tells the user which quadrant a pair

Write a program that tells the user which quadrant a pair of variables is in if the variables x and y are to be plotted on a y versus x graph using cascaded if-else statements. The 9 different conditions that you need to test for are: Quadrant 1 Positive x Axis Quadrant 2 Positive y Axis Quadrant3 Negative x Axis Quadrant 4 Negative y Axis Origin Specifications: Include a prompt that asks a user to input a coordinate pair before you scan in the values from the keyboard, such as "Input Coordinate Pair: " (you must include a colon in your prompt). The program should then read in the values and determine where the point is located on the xy plot. Please note that the Grader Program will submit data to your program by entering two numbers that are separated by a space. The first number is associated with x, and the second with y. The output should return one of the 9 string values listed above (exactly!) to the screen. When you print the results, do not print out anything other than one of the 9 phrases or words listed above. Please note that the Grader Program is case sensitive. If you execute if you execute the program with the following underlined inputs, the output will be: rightarrow main. o Input Coordinate Pair: 0.0 5.3 Positive y Axis rightarrow For the above input (0.0 5-3), your program should display this exactly. If your program does not follow these specifications properly, the Grader Program will not accept your submission

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!