Use of Single-dimension Arrays Write a program that will store 200 integer values in a single-dimension array. The values stored in the array must be randomly generated by the program and be in the range of 1 to 10. The program will: a. Display to the monitor all integer values in table format of 10 rows and 20 columns. b. Calculate and display the total sum of the numbers stored in the array. c. Calculate and display the final average of the numbers stored in the array. d. The number of times each value stored in the array occurred. There are several ways to do this step; and you're allowed to create a second array for this part if it helps. e. Displays a histogram of the value occurrences. The following sample output is for 60 random integers values generated by the computer: 4 10 79 52239 9 10 7 10 The sum of all values is: 345 The average is: 5.75 Occurrence of each value. 1 appeared The value The value The value The value The value The value The value The value 2 appeared 3 appeared 4 appeared 5 appeared 6 appeared 7 appeared & appeared The value 9 appeared The value 10 appeared lue 5: alue 7: Value 8: Value 9: Value 10: 6 times. 3 times. 5 times. 7 times. 1 times. 8 times. 7 times. 9 times. 6 times. 1 10 Process returned (exe) execution time: 0.048 s Press any key to continue.
Write a program that will store 200 integer values in a single-dimension array. The values stored in the
array must be randomly generated by the program and be in the range of 1 to 10. The program will:
a. Display to the monitor all integer values in table format of 10 rows and 20 columns.
b. Calculate and display the total sum of the numbers stored in the array.
c. Calculate and display the final average of the numbers stored in the array.
d. The number of times each value stored in the array occurred. There are several ways to do
this step; and you're allowed to create a second array for this part if it helps.
e. Displays a histogram of the value occurrences.
I am stuck on d and e attache is the Hw file and how far i got in the code.
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 3 images