Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Exercise (50 points) Write a program that reads a file consisting of students\'

ID: 3761546 • Letter: E

Question

Exercise (50 points) Write a program that reads a file consisting of students' test scores in the range 0-200. It should then 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, and 175-200. Output the score ranges and the number of students. (Run your program with the following input data: 76, 89, 150, 135, 200, 76, 12, 100, 150, 28, 178, 189, 167, 200,175, 150, 87, 99, 129, 149, 176. 200, 87, 35, 157, 189.) You must use an array with size 8 to store the number of students for each range. The output format should follow below schema: 0-24 : 1 25-49 : 2 Grading scheme: read the data correctly - 10 points; a function to calculate the numbers of each score range - 30 points; a function for printing the result - 10 points.

Explanation / Answer

#include #include using namespace std; int main() { //declaring variables ifstream myfile("data.txt"); double grades[26]; int i, studentNumber=0; int score0_24=0, score25_49=0, score50_74=0, score75_99=0, score100_124=0, score125_149=0, score150_174=0, score175_200=0; cout