Question: Write a C ++ program that reads a file (Data.txt) consisting of students test scores in the range 0200 . It should then determine the

Write a C ++ program that reads a file (Data.txt) consisting of students test scores in the range 0200. It should then determine the number of students having scores in each of the following ranges: 024, 2549, 5074, 7599, 100124, 125149, 150174, and 175200. Output the score ranges and the number of students.

(Run your program with the following input file: Data.txt )

{"Data.txt" contains - "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"- without quotes}

***Use one-dimensional array to store the data (all the numbers) from the file (Data.txt).

***Use main() function only.

***No object-oriented programming.

****Match the output below***

**************************************************************************************

OUTPUTS:

Write a C ++ program that reads a file (Data.txt) consisting of

Range # of students e-24 25 49 50-74 75- 99 100 124 125 - 149 150 - 174 175 - 200 ? Process returned ? (exe) execution ti Press any key to continue me e.123 s

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!