Write a C++ program that reads a set of integers from the standard input stream. Your program should determine the number of values in each of the following ranges: [0,24], [25,49], [50,74], [75,99], [100,124], [125,149], [150,174], and [175,200]. (Each range is inclusive.)
Your program must be modular in design. Programs with only a main function will receive a score of 0. The main function body should be no more than 20 lines.
Input consists of 0 or more integer values. White space separates values. Input is terminated by end of file. Values falling outside the range [0,200] should be discarded.
Output consists of a table with column headings, eight detail lines, and a summary line. Each detail line consists of a range, the count of values in that range, the percentage this range overall (rounded to the nearest whole number), and a histogram of the percentage.Following the table is one blank line followed by the summary line with total count and percentage. Each line is terminated with a newline character. (See sample output for a detailed example.)
110 87 89 103 85 69 90 101 97 152 67 63 95 136 139 124 79 88 141 113 73 91 112 110 75 120 61 100 87 0 200 -1 201 142 173 25 37 49 70.173.106.164
Range Count Perct Histogram
[ 0, 24] 1 3% ***
[ 25, 49] 3 8% ********
[ 50, 74] 5 14% **************
[ 75, 99] 11 31% *******************************
[100,124] 9 25% *************************
[125,149] 4 11% ***********
[150,174] 2 6% ******
[175,200] 1 3% ***
Total 36 100%