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, 21.06.2019 17:00
How can data be added in a table by using what view
Answers: 1
question
Computers and Technology, 21.06.2019 18:00
Is the following sentence true or false? during meiosis, the two alleles for each gene stay together.
Answers: 3
question
Computers and Technology, 22.06.2019 06:30
Exchanging which type of data uses the least bandwidth? music photographs video voice bandwidth- the amount of data that can be moved between two points in a set time period
Answers: 1
question
Computers and Technology, 23.06.2019 00:30
Quic which one of the following is the most accurate definition of technology? a electronic tools that improve functionality b electronic tools that provide entertainment or practical value c any type of tool that serves a practical function d any type of tool that enhances communication
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, 02.09.2021 08:00
question
History, 02.09.2021 08:00
question
Social Studies, 02.09.2021 08:00
question
Geography, 02.09.2021 08:10
question
Mathematics, 02.09.2021 08:10
question
English, 02.09.2021 08:10
Questions on the website: 13722363