Question: In Java, write a program that contains an array that stores 10 integers. The program should then do the following: Ask the user to enter
In Java, write a program that contains an array that stores 10 integers. The program should then do the following: Ask the user to enter 10 integers (to fill the array) Call a method that displays the values entered into the array Call a method to display the values entered into the array in reverse order Note: this is not a sorting method, just a display method Call a method that calculates and displays the sum of the integers Ask the user to enter a number, representing a limit Call a method that displays all values that are less than the limit Only focus on numbers less than the limit (Note: the output could be blank if the limit value is too small) Call a method that calculates the average and displays values higher than the average You will need: A Scanner object to read values into the array (and to read a limit value) Five void methods, each using an array as a formal parameter The fourth method will read in two parameters: an array and a limit value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
