Question: Write a program that generates 100 random integers between 0 and 9…

$30.00

Category:

Description

Question: Write a program that generates 100 random integers between 0 and 9…

Write a program that generates 100 random integers between 0 and 9 and then reports the number of times each integer value was generated. Report also the integer value or values that were generated least and those which were generated the most.
An example run might look like this:

The count of values generated:
0: 15
1: 11
2:   5
3:   8
4: 10
5:   7
6: 15
7: 13
8:   5
9: 11

Values generated the least: 2, 8
Values generated the most: 0, 6


error: Content is protected !!