Generate an array of 20 random integers from zero to nine


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.

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Generate an array of 20 random integers from zero to nine
Reference No:- TGS01090279

Expected delivery within 24 Hours