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 22:00
You should try to photograph people on bright sunny days because the light will be best a) true b) false
Answers: 1
question
Computers and Technology, 23.06.2019 11:30
Which excel file extension stores automated steps for repetitive tasks?
Answers: 1
question
Computers and Technology, 24.06.2019 02:00
Write an expression that will cause the following code to print "equal" if the value of sensorreading is "close enough" to targetvalue. otherwise, print "not equal". ex: if targetvalue is 0.3333 and sensorreading is (1.0/3.0), output is:
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Write an assembly language program to input a string from the user. your program should do these two things: 1. count and display the number of words in the user input string. 2. flip the case of each character from upper to lower or lower to upper. for example if the user types in: "hello there. how are you? " your output should be: the number of words in the input string is: 5 the output string is : hello there. how are you?
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
History, 14.03.2020 05:10
question
Mathematics, 14.03.2020 05:10
Questions on the website: 13722367