Question: You're given 4 points on a 2D plane. You need to find the if these 4 points construct a square or not. The side of

You're given 4 points on a 2D plane. You need to find the if these 4 points construct a square or not. The side of the square should be of a non-zero length.: The first line represents the x and y coordinates of the 1 st point separated by space. The second line represents the 2nd point, third line represents the 3rd point and fourth line represents the 4 th point.Print, true if the points construct a square, else print false

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 Mathematics Questions!