Program that prompts for input


Assignment:

Write a program that prompts the user to input the x-y coordinate of a point in a Cartesian plane. The program should then output a message indicating whether the point is the orgin, is located on the x (or y) axis, or appears in a particular quadrant. For Example:

(0, 0) is the orgin
(4, 0) is on the x-axis
(0, -3) is on the y-axis
(-2, 3) is in the second quadrant

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Program that prompts for input
Reference No:- TGS01926304

Now Priced at $30 (50% Discount)

Recommended (92%)

Rated (4.4/5)