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 LANGUAGE PLEASE

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter12: Points, Classes, Virtual Functions And Abstract Classes
Section: Chapter Questions
Problem 29SA
icon
Related questions
Question

4. 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 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
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
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