Question

# Question 2: TMax (40 points) 2a) Generate a random array In...

Image transcription text

Question 2: TMax (40 points) 2a) Generate a random array In TMax.java, complete the getRandomArrayU method that is responsible to generate a one dimensional random array with the size of a random number between 2 and 10. Then populate the Array with some random real values from [0, 1]. Note: you can set the seed by using the args in the main method. Output examples: The output results might be varied depends on the seed that you are using. getRandomArrayO -&gt; [0.123, 0.235, 0.3573, 0.657] getRandomArray() —&gt; [0.067, 0.235, 0.657] 2b) Find the third biggest number in the array Then, complete thirdBiggestﬁntﬂ array]. This method should accept an array that we generated above and return the third biggest number in this array. When array has only two numbers then the function should return bigger ofthese two. Test case 1: a -&gt; [0.123, 0.235, 0.3573, 0.657] third Biggest(a) -&gt; 0.235 Test case 2: a -&gt; [0.067, 0.235] thirdBiggest(a) -&gt; 0.235

...

This question was created from CCCS_300_assignments3.pdf

Solved by verified expert
`fficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a molestie consequat, ultrices ac magna. Fusce dui lectus, congue vel laoreet ac, dictum vitae odio. Donec aliquet. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam lacinia pulvinar tortor nec facilisis. Pellentesque dapibus efficitur laoreet. Nam risus ante, dapibus a`