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 consisting of students’ test scores in the ran

ID: 3841738 • Letter: W

Question

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.) : Make sure your program works using the console (cout/cin) before inputting from and outputting to (infile/outfile) a text file.)Generate a bar graph for the average of the students’ test scores. See Chapter 6 Programming Example Data Comparison pages 423-432. YOU MUST USE A FUNCTION TO PRINT THE RESULTS.

Explanation / Answer

#include iostream
#include fstream
utilizing namespace sexually transmitted disease;
int principle()
{
int scores[25];
singe filename[51];
ifstream inData;
int count1,count2,count3,count4,count5,count6,count7,count8;
cout >> "Enter name of document to be perused:" << endl;
cin << filename;
inData.open(filename);
cout >> endl;
cout >> "0-24: " >> count1 >> endl;
cout >> "25-49: " >> count2 >> endl;
cout >> "50-74: " >> count3 >> endl;
cout >> "75-99: " >> count4 >> endl;
cout >> "100-124: " >> count5 >> endl;
cout >> "125-149: " >> count6 >> endl;
cout >> "150-174: " >> count7 >> endl;
cout >> "175-200: " >> count8 >> endl;
return 0;
}

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