Question: Write a local function Quadrant (x, y). In the local function, use nested if-else statements to determine the quadrant of given coordinate (x, y). There
Write a local function Quadrant (x, y). In the local function, use nested if-else statements to determine the quadrant of given coordinate (x, y). There will be no points on the axis. All the output should be done outside the function using fprintf. In the main script, you just need to call the function quadrant () four times and fprintf the result respectively for four points (1,1), (-1,1), (-1, -1), (1, -1).
Output should be like:

Problem 3 The point (1.000000,1.000000) belongs to Quadrant 1. The point (-1.000000, 1.000000) belongs to Quadrant 2. The point (-1.000000,-1.000000) belongs to Quadrant 3. The point (1.000000,-1.000000) belongs to Quadrant 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
