Question: In JAVA language please. Allocate an array with size and fill it with random numbers using the > to seed the random number generator. To

In JAVA language please. In JAVA language please. Allocate an array with size and fill it

with random numbers using the > to seed the random number generator.

Allocate an array with size and fill it with random numbers using the > to seed the random number generator. To get the most noticeable effect use the Integer type rather than the primitive int type. For times do the following: Calculate the time to access each element in the first 10% of the array and a single random element in the last 10% of the array. Next, calculate the sum of each of the elements accessed and report the following averages: 1. Time to access a single element in the first 10% of the array. 2. Time to access a single random element in the last 10% of the array. 3. Average sum of the elements. Produce a short report (450-500 words) with graphs and/or tables describing the observed behavior when accessing elements at the prescribed portions of the array. Task 2 Avg time to access known element: 15.13 nanoseconds Avg time to access random element: 646.00 nanoseconds Sum: 1005470868.00 Task 3 Avg time to find in set: 69055.00 nanoseconds Avg time to find in list: 83721555.00 nanoseconds

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!