Question: In Python 3 Assignment: For this lab assignment, we're going to be dealing with rectangles and an independent point. How we're going to determine where/how
Assignment: For this lab assignment, we're going to be dealing with rectangles and an independent point. How we're going to determine where/how big your rectangle is located is through the x, y-coordinates of the lower left corner and upper right corner. So, like the following: (x1, y2) (x2, y2) (x1, y1) (x2.12 We're testing your coordinate point (another independent x, y-coordinate pair) to see whether the point is inside the rectangle, outside the rectangle, or intersecting one of the lines of the rectangle. If the point is outside of the rectangle, we're then going to determine whether the point is north, south, east, west, or any combination (southeast, southwest, etc) in relation to the rectangle, The program should get the coordinates for the rectangle once. However, the user should be able to enter in however many points to test that they'd like. Note: North, south, east, and west should be inclusive on the respective axis. So, for instance, if the point is north of the rectangle, but the x-coordinate lies on the eastern border of the rectangle (so the point shares an x coordinate with the rectangle), then the point would be north, not northeast
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
