Question: In C++ Description Write a program that reads a file consisting of students' test scores in the range 0- 200. It should determine the number
In C++


Description Write a program that reads a file consisting of students' test scores in the range 0- 200. It should determine the number of students having scores in each of the following ranges: 0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, 150-174, and 175-200. You also need to sort the array (using bubblesort or selection sort), and determine the median, the mean, lowest score, highest score, and the standard deviation. Output all the necessary stats along with the number of students in the list. To obtain the median of the list, you must first sort the list and the middle element is the median, if the length of the list is odd then the middle is the median, if the list length is even then it is the average of the two middle elements. The standard deviation is where N is the length of the list. xi Is an element of the list, and z is the mean. If you sort the list, then the min and max items are not too hard to find, the mean is simply add up all the elements in the list and divide by the size of the list. You will use a constant that contains the size of the array, however you will not necessarily use the entire array, thus you will need a counter to determine the range of elements you will have to use. The size of the array used in this assignment will be set to 100 (use a constant not the literal 100), and everytime you read an element from the file, you will increment a counter to determine how many tests your read from the file, once you reach the end of the file, you will know the range of elements in the array that will be actually used. Specifications To get full credit you program must contain/perform the following Declare variables with meaningful names and appropriate types Document all your variables Document portions of your code (parts that perform input, output, calculations etc.) . Program must compile and run with various inputs Sample Output Description Write a program that reads a file consisting of students' test scores in the range 0- 200. It should determine the number of students having scores in each of the following ranges: 0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, 150-174, and 175-200. You also need to sort the array (using bubblesort or selection sort), and determine the median, the mean, lowest score, highest score, and the standard deviation. Output all the necessary stats along with the number of students in the list. To obtain the median of the list, you must first sort the list and the middle element is the median, if the length of the list is odd then the middle is the median, if the list length is even then it is the average of the two middle elements. The standard deviation is where N is the length of the list. xi Is an element of the list, and z is the mean. If you sort the list, then the min and max items are not too hard to find, the mean is simply add up all the elements in the list and divide by the size of the list. You will use a constant that contains the size of the array, however you will not necessarily use the entire array, thus you will need a counter to determine the range of elements you will have to use. The size of the array used in this assignment will be set to 100 (use a constant not the literal 100), and everytime you read an element from the file, you will increment a counter to determine how many tests your read from the file, once you reach the end of the file, you will know the range of elements in the array that will be actually used. Specifications To get full credit you program must contain/perform the following Declare variables with meaningful names and appropriate types Document all your variables Document portions of your code (parts that perform input, output, calculations etc.) . Program must compile and run with various inputs Sample Output
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
