Exercise#4: Write a program that performs the following: a. Declare an array called arrayA holds integer numbers, the si
Posted: Sat May 14, 2022 6:45 pm
using Java netbeans 12.6
Exercise#4: Write a program that performs the following: a. Declare an array called arrayA holds integer numbers, the size of the array is entered by the user. b. A method called fillArray(...) of type void to fill the array with a set of generated random integers c. A method called printArray (...) of type void to display the elements of the array 5 elements per lines. d. A method called count (...) of type integer to count and return the number of integers greater than a value enter by the user e. A method called aboveAverage(...) of type integer that finds and returns how many numbers in arrayA are above the average of the array numbers
Exercise#4: Write a program that performs the following: a. Declare an array called arrayA holds integer numbers, the size of the array is entered by the user. b. A method called fillArray(...) of type void to fill the array with a set of generated random integers c. A method called printArray (...) of type void to display the elements of the array 5 elements per lines. d. A method called count (...) of type integer to count and return the number of integers greater than a value enter by the user e. A method called aboveAverage(...) of type integer that finds and returns how many numbers in arrayA are above the average of the array numbers