Question: Please help correct my code im getting the wrong output . The output should be Enter the seed for the random number generator. ( 3

Please help correct my code im getting the wrong output .
The output should be
Enter the seed for the random number generator.
(3001)
Enter the quantity of data in the histogram
(10)
0: 0
1:-1
2:--2
3:-1
4:-1
5:0
6:-1
7:0
8:----4
9:0
this is an exmple of what the code should output
Please help correct my code im getting the wrong

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 Programming Questions!