Generate an array of 20 random integers

Topsolutions
 (Not rated)
 (Not rated)
Chat

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

 

1

Insert a copy of your of the  zip file of all of your VS project files so that it could be loaded and run in another VS here:

 

 

 

2

Insert a copy of your *.cssource code text you used here(copy and paste source code here, do not simply insert *.cs files):

 

 

 

 

3

Insert a screenshot of the output that resulted from running your program here showing your last name as the first printed text to the screen:

 

 

 

4

Write a summary of the design of your program, how you did you code it, and the lessons you learned from the programming assignment here:

 

 

 

 

    • 12 years ago
    complete solution
    NOT RATED

    Purchase the answer to view it

    • 4voyv6o1.zip