Question: java Write a program that creates an array of 10 integers, reads 10 integers from the user (console) into the array, prints all the elements
Write a program that creates an array of 10 integers, reads 10 integers from the user (console) into the array, prints all the elements in the array on the console, - computes then prints the average of all the elements in the array, - counts then prints the number of the greater elements in the array than the computed average, - creates a new array with a size equal to the number of the greater elements than the average, - places all the greater elements than the average into the new array and prints all the elements in the new array as in the example console input and output below
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
