Question: In Java, using scanner, conditionals, loops, arrays Each in a method, Creates an integer array of n elements. Asks the user for the values of

In Java, using scanner, conditionals, loops, arrays
Each in a method,
Creates an integer array of n elements. Asks the user for the values of n and create the array.
Asks the user for the elements and inserts the values in the array.
Prints the array in reverse (from the last element to the first).
Prints the sum of the elements of the array.
Prints the average of the elements of the array.
Prints the number of elements that are more than or equal to the average value. For
example, There are 4 elements more than the average.
Prints the index of the elements that has value more than or equal to the average.
Prints the minimum value of the array and the index of the minimum value.
Prints the maximum value of the array and the index of the maximum value.
Prints out how many odd numbers there are in the array, those numbers, and the index of those numbers.
Prints out how many even numbers there are in the array, those numbers, and the index of those numbers.

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!