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

Write a program that reads a file (\"scores.txt\") consisting of students\' test

ID: 3656446 • Letter: W

Question

Write a program that reads a file ("scores.txt") consisting of students' test scores in the range of 0-200. These scores should be loaded into a one dimensional array. Then the program should determine the number of students having scores in each of the following categories: 0-24,25-49,50-74,75-99,100-124,125-149,150-174,175-200. Output the score ranges and number of students. Run your program with the following input data that is stored (one number per line) in "scores.txt": 76,89,150,135,200,76,12, 100,150,28,178,189,167,200,175,150,87,99,129,159,176,200,87,35,157,189 Output format: Score Range Number of Students 0-24 1 25-49 2 etc.

Explanation / Answer

#include #include//reading/writing to file using namespace std; //uses input.Dat, //create() IS ONLY FOR TESTING PURPOSES void create(){ int test[]={76,89,150,135,200,76,12,100,150,28,178,189,167,200,175,150,87,99,129,159,176,200,87,35,157,189 }; ofstream dat; dat.open("scores.txt"); if(dat.is_open()){ cout
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote