Question: this is beginning programming and must be in FLOWGORITHM only. An instructor wants a program that will allow them to enter scores from a test
this is beginning programming and must be in FLOWGORITHM only.
An instructor wants a program that will allow them to enter scores from a test and then calculate and output the lowest score, the highest and the median score. The median is the middle value of the data. For arrays with an odd number of elements the median value will have an equal number of elements above and below it. For arrays with an even number of elements since there isn't a single middle value, the median is the average of the two middle elements.
I. 5 points - Input and low/high
Ask the user how many scores are being entered and declare a real array of that size Fill the array with input from the userSort the array using the sortArray module that is already defined in the starter file.Output the lowest and the highest scores
II. 3 points - The Median
Output the correct median valueRemember that you can check to see if a number is even or odd by taking it %2 and looking at the result.
III. 2 points - Error Checking
Error check the number of scores to be >= 2 and each score to be between 0 and 100 inclusive.
IV. 1 bonus point - Fudge Factor
After running the finished program the instructor was unhappy with the results, expecting a higher median value. They have requested that you include a an option to "drop" a number of low scores and then recalculate the lowest and median scores, the highest score should remain the same.
After the standard low, high and median have been displayed ask the user how many low scores they would like to drop. Error check this number to be low enough that there will always be at least one score left.If the user entered 0, do nothing else and end the program.Don't create a new array but instead calculate the indices for the new minimum and median
Sample Data:
For input of 7 scores: 99, 88, 77, 11, 33, 55, 66
11, 33, 55, 66, 77, 88, 99
The Program would output:
99, 88, 77, 11, 33, 55, 66 //these two lines are output from
11, 33, 55, 66, 77, 88, 99 //the sortArray module
low: 11
high: 99
median: 66
For input of 6 scores: 99, 88, 77, 11, 33, 66
11, 33, 66, 77, 88, 99
The Program would output:
99, 88, 77, 11, 33, 66 //these two lines are output from
11, 33, 66, 77, 88, 99 //the sortArray module
low: 11
high: 99
median: 71.5
Sample Data for part IV:
For input of 7 scores: 99, 88, 77, 11, 33, 55, 66
11, 33, 55, 66, 77, 88, 99
The Program would output:
99, 88, 77, 11, 33, 55, 66 //these two lines are output from
11, 33, 55, 66, 77, 88, 99 //the sortArray module
low: 11
high: 99
median: 66
How many scores would you like to drop?
7
ERROR, there must be at least one score left, how many scores would you like to drop?
1
low: 33
high: 99
median: 71.5
For input of 7 scores: 99, 88, 77, 11, 33, 55, 66
11, 33, 55, 66, 77, 88, 99
The Program would output:
99, 88, 77, 11, 33, 55, 66 //these two lines are output from
11, 33, 55, 66, 77, 88, 99 //the sortArray module
low: 11
high: 99
median: 66
How many scores would you like to drop?
4
low: 77
high: 99
median: 88

1, 3, 3, 6, 7, 8, 9 Median = 6 1, 2, 3, 4, 5, 6, 8, 9 Median = (4 + 5) 2 4.5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
