[Solved]Write Frequency Histogram Program Uses Random Number Generator Rand Generate 100 Numbers 1 Q37171204

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 wil 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. Organize your program using separate functions and provide a separate file for each function 0-1-2-3–4–5–6–7-8–9.10-1112-13-14–15-16–17-18–19–Invalid Show transcribed image text 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 wil 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. Organize your program using separate functions and provide a separate file for each function 0-1-2-3–4–5–6–7-8–9.10-1112-13-14–15-16–17-18–19–Invalid
Expert Answer
Answer to Write a Frequency and Histogram program that uses the random number generator, rand, to: Generate 100 numbers between 1 … . . .
OR

