/*
Assignment 2a
Write a program that will print out the
number of the quadrant given the
coordinates of a point. For example,
(3,4) would be quadrant 1, (-2,3)
would be quadrant 2 and so on.
Your program should be able to
recognize points on either axis or
at the origin. Use (0,3), (-5,0),
(1,3), (-4,2),(-6,-1), (2,-9) and (0,0)
for your test data.
Your program should respond,
y-axis, x-axis, 1,2,3,4, and origin.
Use nested if's and not compound conditionals.
Test as you go.
Write the main program in a for loop,
making it longer as you add more data.
Eventually it should look like:
for (int i =1; i<=7; i++)
{
your code
}
====================================
PSEUDO-CODE FOR SOLVING THE PROBLEM
get the x from the user
get the y from the user
if(x > 0)
-Options: q1,q4,x-Axis
if(y > 0)
cout q1
else if(y < 0)
cout q4
else
cout x-Axis
else if(x < 0)
-Options: q2, q3, x-Axis
if(y > 0)
cout q2
else if(y < 0)
cout q3
else
cout x-Axis
else // x == 0
-Options: y-Axis, origin
if(y != 0)
cout y-Axis
else
cout origin
*/
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world!" << endl;
return 0;
}