Question: Write a C program that creates a histogram based on data obtained through standard input. You are to first read in a set of integer
Write a C program that creates a histogram based on data obtained through standard input.
You are to first read in a set of integer values that will be used to create the histogram. The first integer will tell you the size of the data set to expect. You can then read in that (exact) quantity of integer grade values.
Once the last integer is read, the program should create/display the histogram.
For this histogram, you are to have five grade ranges that will be used to keep track of integer grade values between 0 and 100.
The first is the grade F range containing grade values ranging from 0 to 49.
The second is the grade D range containing grade values ranging from 50 to 59.
The third is the grade C range containing grade values ranging from 60 to 69.
The fourth is the grade B range containing grade values ranging from 70 to 79.
The fifth is the grade A range containing grade values of 80 and greater.

Sample Input Sample Output D: 11 41 51 52 53 61 71 72 73 74 8191 A: ?? 9 41 51 52 61 62 63 71 72 81 C: *? D: 12 21 31 41 51 52 61 62 63 71 81 91 100 kxn
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
