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

java
java Write a program that creates an array of 10 integers, reads

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

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!