Computers and Technology

Exercise on single dimensional arrays declare an array reference variable arrayint for an array of integers. create the array of size 100, and assign it to arrayint. (2 points) write a method to populate the array with random numbers between 1 to 25. signature of the method is: populatearray( int[] ) which returns nothing. call this method from main with arrayint--> populatearray(arrayint). (2 points) write a method to print an array. signature of the method is: printarray( int[] ) which returns nothing. print maximum of ten(10) numbers on a line (see sample output below). call this method from main with arrayint--> printarray(arrayint). hint: use the modulus operator. any number n % 10 will return a value 0-9. (3 points) write a method that finds the average of the array elements. signature of the method is: findaverage( int[] ) which returns the average to the calling program. call this method from main with arrayint--> findaverage(arrayint). github

answer
Answers: 1

Similar questions

Do you know the correct answer?
Exercise on single dimensional arrays declare an array reference variable arrayint for an array of i...

Questions in other subjects:

Konu
Mathematics, 19.01.2021 19:40
Konu
Mathematics, 19.01.2021 19:40
Konu
Mathematics, 19.01.2021 19:40