subject

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 18:40
Access defaults to searching for information on the
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
Which parts of a presentation should be the most general? a. introduction and conclusion b. introduction and outline c. outline and conclusion d. outline and body
Answers: 1
question
Computers and Technology, 22.06.2019 19:30
The following is an excerpt from a slide presentation. today we will inverse operations solving equations using inverse operations solving inequalities using inverse operations from which part of the presentation does the slide most likely come from? a. introduction b. outline c. body d. conclusion
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
You know the right answer?
Exercise on single dimensional arrays declare an array reference variable arrayint for an array of i...
Questions
question
Mathematics, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
question
English, 11.02.2021 14:00
question
History, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
question
Mathematics, 11.02.2021 14:00
Questions on the website: 13722360