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 of variables is in if the variables and are to be plotted on a y versus graph using cascaded ifelse statements. The different conditions that you need to test for are:
Quadrant
Quadrant
Quadrant
Quadrant
Positive Axis
Positive y Axis
Negative Axis
Negative y Axis
Origin
Specifications:
Use Netbeans to create a HW project, and a main.cpp file using C
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 graph. Please note that the first number is associated with and the second with
The output should print one of the string values listed above to the screen. If you execute the program with the following underlined inputs, the output will be:
Input Coordinate Pair:
Positive y Axis
For the above input your program should display this exactly.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
