Question: Write a program using C in visual studio. 1) Write a program which generates 1000 random numbers between 0 and 9 and places them in
1) Write a program which generates 1000 random numbers between 0 and 9 and places them in an array. The program has a function, (analvze0) than analyzes the array for the number of o, 1, 2 . 9. It then prints out the frequency of each digit in the original list. First 20: 4, 1, 5, 4, 8, 4, o, 8, 2, 2, 8, 2, 7, 1, 6, 3, 3, 2, 5, 7 There are: 0's 1's 2's 3' S 4's 120 97 96 108 87 118 6's 7's 8' s 90 Press any key to continue
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
