Question: write a program to collect scores ( they will be integers in the range from 0 to 1 0 0 ) and then provide some
write a program to collect scores they will be integers in the range from to and then provide some statistics about the set of data. Write a program in Java that asks the user to enter a score. You will store this score into an array. This will happen over and over again until the user enters enter to stop provide instructions in the program to this effect Make sure the scores aren't outside of the range, with the exception of the sentinel value Since you don't know how long this will go on you must continue to resize the array to meet the amount of data entered in the program. You should not just create an extremely large array, as this is a waste of memory; so: your first array must be of length When the user has finished entering all the scores, the program should iterate over the array and find the number of scores entered, the sum of the scores, the mean, the lowest and the highest score. It should display this information to the user.
You may only use simple arrays. You cannot import any new classes aside from the scanner which will be required to capture the user input. Use of outside classes not earn any points.
As a further exercise, try to find the median and mode also using looping techniques and arrays.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
