Generate an array of 20 random integers
(Not rated)
(Not rated)
Task:
a. Generate an array of 20 random integers from zero to nine. Search for the first occurrence, if any, of the number 7, and report its position in the array.
b. Repeat the computation of part a 1000 times, and for each position in the array, report the number of times that the first occurrence of a 7 in the array is at that position.
Deliverables:
A Word document that includes:
1. Zip file of all VS project files so that it could be loaded and run in another VS
2. A copy of the source code
3. Screenshot of the output
4. Explanation of how one arrived at the solution
12 years ago
complete solution
NOT RATED
Purchase the answer to view it

- 4voyv6o1.zip