1.
Q18: Put the following code in order to create a program that will declare and instantiate an array of 20 random values between 1 and 100 and then calculate and print the average of the first 10 numbers.
arrayName[index]
returns value stored at that indexarrayName.length
- 1, inclusive otherwise IndexOutOfBounds
exception occursarrayName[index]
will now contain the value on the RHS of assignment statement