Question: Consider the following rectangle and point p shown in the figure below: y TPx p= D y = 2 y = -2 1 x =

 Consider the following rectangle and point p shown in the figure

Consider the following rectangle and point p shown in the figure below: y TPx p= D y = 2 y = -2 1 x = -3 x = 3 Write some Python code that sets in1 to True if the point with coordinates (px, py) is inside the quadrant of the rectangle labelled with a 1, and False otherwise. The quadrant labelled 1 is the upper- right quarter of the rectangle. It does not matter how you treat points that are exactly on the border of quadrant 1. You should assume that the person who marks your work will change the coordinates (px, py) to several different values when they are grading your work You may answer using if statements if you wish. px = 1.5 py 0.5 in 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!