Question: C code (Not C++) Problem 2 . Create a script that will take 4 vertices (Keep in mind each vertex require 2 numbers for both

C code (Not C++)
Problem 2 . Create a script that will take 4 vertices (Keep in mind each vertex require 2 numbers for both horizontal and vertical coordinates. So Total 8 numbers of user input!) and make the decision whether the 4 vertices form a square, a rectangular (but not a square), a diamond shape, a parallelogram (but not rectangular). Do not have to ask the user whether she/he wants to repeat the whole process. Square: All angles are equal. All sides are equal. The area of Square One side Diamond: All sides are equal. The area of Diamond Product of Diagonal lines x 0.5. Rectangular: All angles are equal and altemate sides are equal. The area is the product of a pair of altermate sides. Parallelogram: Two pair of parallel sides. Please, use these coordinates to verify your script. Vertex 1 = [0,1], Vertex 2 = [0,0], Vertex 3 = [1,0], Vertex 4 = [1,1]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
