What are the codes to a Python program that will ask a user what the x-coordinate and
Fantastic news! We've Found the answer you've been seeking!
Question:
- What are the codes to a Python program that will ask a user what the x-coordinate and y-coordinate of their position is on a traditional Cartesian coordinate system.
- The program then will, using nested if statements, will print out which quadrant the point lies within. However, if the point is on an axis, such as (0, 2), the program will print that the point lies on an axis (for example, (0, 2) is on the Y-axis and (2, 0) is on the X-axis).
Related Book For
Analytics Data Science And Artificial Intelligence Systems For Decision Support
ISBN: 9781292341552
11th Global Edition
Authors: Ramesh Sharda, Dursun Delen, Efraim Turban
Posted Date: