Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

In Python 3 image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Administration The Essential Reference

Authors: Brian Laskey, David Kreines

1st Edition

1565925165, 978-1565925168

More Books

Students also viewed these Databases questions

Question

8. Describe how cultural spaces are formed.

Answered: 1 week ago