Question: A . Write a function with your netid as the name. It should take one input, array 1 . It should return one output, out
A Write a function with your netid as the name. It should take one input, array It should return one output, out
array is an array with elements.
Define the following values in your function:
i The number that is the largest value in array
j The product of all of the numbers in array
k The number in the nd index of array
out should be ik j
You may not use the commands min, max, or sum in this function. Assume that all elements of array are different.
BHow many test cases do you need for this function? Why?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
