1. Create a script that will take 4 vertices (total 8 numbers) then make decision whether those vertices form a square, a rectangular, a diamond (A.K.A Rhombus), a parallelogram, or just a quadrilateral. Also, the area of the shapes if the shape is a square or rectangular. [CREATE AN ARRAY FOR 4 VERTICES (TOTAL 8 NUMBERS, THEN REPEAT THE SAME PROCEDURE. The WHOLE COMPUTATION NEEDS TO BE DONE BY ACCESSING ELEMENTS IN THE ARRAY .) Taking values for the ARRAY has to be done within main(). But computation and displaying the result should be done with the USER DEFINED FUNCTION!) C language please

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter6: Arrays
Section: Chapter Questions
Problem 17RQ
icon
Related questions
Question

1. Create a script that will take 4 vertices (total 8 numbers) then make decision whether those vertices
form a square, a rectangular, a diamond (A.K.A Rhombus), a parallelogram, or just a quadrilateral. Also,
the area of the shapes if the shape is a square or rectangular.
[CREATE AN ARRAY FOR 4 VERTICES (TOTAL 8 NUMBERS, THEN REPEAT THE SAME PROCEDURE. The
WHOLE COMPUTATION NEEDS TO BE DONE BY ACCESSING ELEMENTS IN THE ARRAY .)
Taking values for the ARRAY has to be done within main(). But computation and displaying the result
should be done with the USER DEFINED FUNCTION!)

C language please 

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Fundamentals of Multithreaded Algorithms
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning