Question: 5 . 1 9 Array in class exercise 1 Randomly generate 1 0 integers between 0 and 1 0 0 0 , and store them
Array in class exercise
Randomly generate integers between and and store them into an array. The program will sum all the odd numbers in the array together and compute their average. The program will output the generated integers and the computed average. Your program should provide a single input of an integer, which will be used to set the srandint function to choose a sequence of random numbers. The output average should be printed with digits precision.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
