Question: in C language . Write a Frequency and Histogram program that uses the random number generator, rand, to: Generate 100 numbers between 1 and 22.

 in C language . Write a Frequency and Histogram program that

in C language .

Write a Frequency and Histogram program that uses the random number generator, rand, to: Generate 100 numbers between 1 and 22. The array is then to be passed to a modified version of program 8-7 that will count the number of values between 0 and 19. - Add a 21st element in the array to count all numbers not in the valid range (0 to 19). - Print the input data in a 20 X 5 array-that is, 20 numbers in five rows Then print the frequency diagram with a heading of the numbers as shown below. Include a histogram printout of the data. Its format should be similar to Figure 8-15. ..-2 .-3.-4.-5.-6.-7-8.-9.-10.-11.-12.-13.-14.-15.-16-17.-18.-19-Invalid

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!