Write a program that prompts the user to input the x-ycoordinate of a point in a
ID: 3614328 • Letter: W
Question
Write a program that prompts the user to input the x-ycoordinate of a point in a cartesian plane. The program shouldthen output a message indicating whether the point is theorigin, is located onthe x-(or y-) axis, or appears in a particular quadrant. Forexample: (0, 0) is the origin (4, 0) is on the x-axis (0, -3) is on bthe y-axis (-2, 3) is in the second quadrant. Write a program that prompts the user to input the x-ycoordinate of a point in a cartesian plane. The program shouldthen output a message indicating whether the point is theorigin, is located onthe x-(or y-) axis, or appears in a particular quadrant. Forexample: (0, 0) is the origin (4, 0) is on the x-axis (0, -3) is on bthe y-axis (-2, 3) is in the second quadrant.Explanation / Answer
please rate - thanks #include using namespace std; int main() {double x,y; char yorn='y'; int quadrant; while(yorn!='n'&&yorn!='N') {coutRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.