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++ 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

Please follow the directions when creating the script. 

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().
Transcribed Image Text: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().
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 5 images

Blurred answer
Knowledge Booster
Lists
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++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning