Programming Homework Help

AIUO Arrays

 

Develop a C# console application that implements an int array. Use 2 ‘for’ loops, the first to fill the array using the Random class to generate random integers (see p241, section 7.9) using the next method of the Random class and a second for loop to iterate through the filled array and print the values entered into the array by the random number generator. Use the array’s length variable to stay within the array bounds for both loops.

Possible output might look like this:

The array value is 488
The array value is 402
The array value is 237
The array value is 48
The array value is 390
The array value is 186
The array value is 425
The array value is 342
The array value is 477
The array value is 319
Press any key to continue .