Question: PLEASE SOLVE IN JAVA The following require using linear arrays/lists. For each, the input comes from 2-digit random integers. It is preferable the functions are
PLEASE SOLVE IN JAVA
The following require using linear arrays/lists. For each, the input comes from 2-digit random integers. It is preferable the functions are implemented recursively. It is up to you to implement the algorithm in Java . You do need to have a one main function that calls each function.
a. Generate a list of 20 random integers. b. Print the maximum element. c. Print the maximum and minimum elements. d. Print the median element. e. Print the element that occurs most frequently. f. Print the sum of the squares of the elements. g. Print the average of the N elements. h. Print the element closest to 0. i. Print all the numbers greater than the average. j. Print the N elements in increasing order. k. Print the N elements in random order. l. Print histogram (with, say 10 bins of size 0.1).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
