The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 399 Weeks Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1.Using C++ write a program that takes the x - y coordinates of a point in the Cartesian plane and prints a message telling that the point is either
a. The origin (0, 0)
b. On the x axis
c. On the y axis
d. The quadrant in which it is found.
The program should continually ask the user to enter the x and y coordinates until they enter a A????1qA????1 for quit.

Sample lines of output:
(-1,0, -2.5) is in quadrant III
(0.0, 4.0) is on the y-axis
(3.2, 0) is on the x- axis
(5.7, 8.3) is in quadrant I
(7.1, -8.8) is in quadrant IV
(-5.9, 2.3) is in quadrant II
(0,0) is the origin
Run your program with the above data and print the output as above.
Hel-----------lo -----------Sir-----------/Ma-----------dam----------- Â----------- Th-----------ank----------- Yo-----------u f-----------or -----------usi-----------ng -----------our----------- we-----------bsi-----------te -----------and----------- ac-----------qui-----------sit-----------ion----------- of----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill-----------