Will vote down if script does not use user defined functions in c! Create a script that will take 4 vertices (total 8 numbers) then make decision whether those vertices form a square, a rectangle, 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!

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

Will vote down if script does not use user defined functions in c!

Create a script that will take 4 vertices (total 8 numbers) then make decision whether those vertices form a square, a rectangle, 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!  

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Arrays
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