subject

Assignment Objective: Build skills on the use of arrays. Program Requirements:Create the method "initArray"oIt is a void method that takes one parameter "aIn", a double array. oFor each entry, initArray() will assign to it a random number between 0 and 1000, [0..1000).That is, inclusive of 0, but not inclusive of 1000Create the method "statsArray"oIt is a method that takes one parameter "aIn", a double array, and returns "aOut", a double array. oThe method does the following:It creates the array aOut with length 3.It iterates over aIn[] to find the minimum, maximum, and average of the values in aIn[]It stores the minimum value found in aIn[] into aOut[0]It stores the maxium value found in aIn[] into aOut[1]It stores the average of the values in aIn[] into aOut[2]It returns aOutCreate the method "findArray"oIt is a method that takes the following three double parameters: aIn[], start, stop. And returns an integer. oThe method does the following:It iterates over array aIn[], counting the number of entries whose value is in the range of values between start and stop, inclusive ... [start .. stop].oIt returns the sum of the number of values found in that range.In the main() method:oCreate the double array "rA" and allocate to it an array of size 100.oCall initArray(rA)oCall statsArray(rA)oPrint out the min, max, and average found by statsArray().oCall findArray(rA, 0, 1000) and prints the result. oCall findArray(rA, 0, 500) and prints the result

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Write a function called checkfactor that takes two arrays of positive numbers, firstnumberrow and secondnumberrow. checkfactor checks if the first entry in firstnumberrow is divisible by the first entry in secondnumberrow, and performs the same operation on the next array elements until all entries have been checked. all the numbers are positive and the number of entries in the arrays are the same. the function should return the identified divisible numbers in two row arrays named firstdivisible and seconddivisible.restrictions: branches or loops should not be used. the code must use the internal mod and logical functions.hint: the mod function should be used to determine if two numbers are divisible. ex: for num1 and num2 if mod(num1,num2) is 0, then the two numbers are divisible.this is matlab
Answers: 2
question
Computers and Technology, 24.06.2019 09:30
Atype of researcher who uses computers to make sense of complex digital data
Answers: 1
question
Computers and Technology, 24.06.2019 21:00
How does a vaccine prevent sickness and individual?
Answers: 2
question
Computers and Technology, 24.06.2019 23:00
Systolic pressure is a measure of blood pressure when the ventricles relax and fil with blood ture or false
Answers: 1
You know the right answer?
Assignment Objective: Build skills on the use of arrays. Program Requirements:Create the method "in...
Questions
question
Mathematics, 27.05.2021 01:00
question
Mathematics, 27.05.2021 01:00
Questions on the website: 13722359