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, 22.06.2019 02:30
The cm is responsible for overseeing the actions of the crisis management team and coordinating all crisis management efforts in cooperation with disaster recovery and/or business continuity planning, on an as-needed basis
Answers: 1
question
Computers and Technology, 22.06.2019 20:00
Awide variety of “ apps “ are available to customize devices. which category of app does the word processing software fall into?
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 03:00
What are the different parts of computer
Answers: 2
You know the right answer?
Assignment Objective: Build skills on the use of arrays. Program Requirements:Create the method "in...
Questions
question
Physics, 24.12.2021 03:00
Questions on the website: 13722360