Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Programming language is C++ PA 10-4 (25 points) Write a program that fills an array of size 100 with 100 random integers, 0-9. Count how
Programming language is C++
PA 10-4 (25 points) Write a program that fills an array of size 100 with 100 random integers, 0-9. Count how many time each integer appears in the array and display the results Hint: To keep the random numbers in your array from constantly changing, do not include the srand(time(O)); line in your program until it is running perfectly. Hint: You should need at least two arrays, one for random integers (size 100, [o199]) and one to keep track of number of occurrences (size 10, [O] -[9]), and use nested for loops. Don't forget to initialize arrays to 0 where applicable. EACodeBlocks-EP CodeBlocks-EP Ma O occurs 16 times 1 occurs 10 times 2 occurs 7 times 3 occurs 13 times 4 occurs 7 times 5 occurs 1 times 6 occurs 10 times 7 occurs 11 times 8 occurs 15 times 9 occurs 10 timesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started