Script must be in c and use user defined functions! Please follow all instructions Create a script that will find the Median value of {-100, 97, 83, 21, -50, 20, 101, 30} and {-100, 97, 83, 21, 20, 101, 30}. [THE USER SHOULD BE PROMPTED TO TYPE IN THE SIZE OF ARRAY. THEN, EACH FOLLOWING NUMBER THAT USER TYPES IN SHOULD BE STORED IN THIS ARRAY. Whole computation has to be done by accessing elements in the array. USER PROMPTING TO ASK THE SIZE OF ARRAY HAS TO BE DONE IN main(). COMPUTATION HAS TO BE DONE WITHIN THE USER DEFINED FUNCTION. THE FINAL VALUE SHOULD BE RETURNED TO THE main() function. THE DISPLAY OF THE RESULT SHOULD TAKE PLACE WITHIN main().

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.4: Passing Addresses
Problem 1E
icon
Related questions
Question
100%

Script must be in c and use user defined functions! Please follow all instructions

Create a script that will find the Median value of {-100, 97, 83, 21, -50, 20, 101, 30} and {-100, 97, 83, 21, 20, 101, 30}. [THE USER SHOULD BE PROMPTED TO TYPE IN THE SIZE OF ARRAY. THEN, EACH FOLLOWING NUMBER THAT USER TYPES IN SHOULD BE STORED IN THIS ARRAY. Whole computation has to be done by accessing elements in the array. USER PROMPTING TO ASK THE SIZE OF ARRAY HAS TO BE DONE IN main(). COMPUTATION HAS TO BE DONE WITHIN THE USER DEFINED FUNCTION. THE FINAL VALUE SHOULD BE RETURNED TO THE main() function. THE DISPLAY OF THE RESULT SHOULD TAKE PLACE WITHIN main().

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
Array
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
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