Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Got another one
#1
This one seems to have the entire class stumped. I'll be damned if I can't figure out how to do it. I'll post the homework question, and anyone who might have an idea on how to get started can reply. Stuff is darned difficult.

"(10 points) Write a program that takes as input two opposite corners of a
rectangle: (x1,y1) and (x2,y2) – float or integer only. Finally, the user is prompted
for the coordinates of a third point (x,y). The program should print Boolean value
True or False based on whether the point (x,y) lies within the rectangle. At the
end of each run, the user should be prompted to ask whether then want to
continue.
Note that the rectangle could fall anywhere in the 2X2 plane of real numbers."
Reply


Messages In This Thread
Got another one - by DansterTx - Feb-17-2020, 12:53 AM
RE: Got another one - by michael1789 - Feb-17-2020, 01:17 AM
RE: Got another one - by DansterTx - Feb-17-2020, 03:04 AM
RE: Got another one - by jefsummers - Feb-17-2020, 01:21 AM
RE: Got another one - by michael1789 - Feb-17-2020, 03:21 AM
RE: Got another one - by ndc85430 - Feb-17-2020, 06:35 AM
RE: Got another one - by DansterTx - Feb-17-2020, 06:10 PM
RE: Got another one - by jefsummers - Feb-17-2020, 06:45 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020