Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can I get the common functions of there things? thank you * * arrayMax * * Purpose: finds the maximum value in the input array
Can I get the common functions of there things?
thank you
* * arrayMax * * Purpose: finds the maximum value in the input array * * Parameters: an array of integers * * Preconditions: * array contains at least one element * * * * Returns: maximum value in the array * */ * * * contains * * Purpose: determines whether the values in lookingFor are strictly contained in searchArray in the same order * * * Parameters: int[] array of integers being looked for int[] - array of integers being looked in * * * * Returns: boolean - true is all are above, false otherwise * * * * areAllAbove * * Purpose: determines whether all values in array are above threshold * * Parameters: int[] array of integers int - threshold that numbers must be above * * * Returns: boolean - true is all are above, false otherwise * * * * arrayRange * * Purpose: determines the range of values in inputArray * as the lowest value and the highest value in the inputArray * * Parameters: int[] - array of integers * * Preconditions: inputArray contains at least one element * * Returns: int[] a 2 element array with the lowest and highest values * found in inputArray at index 0 and i respectively of the result arrayStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started