Question: Write a function with your netid as the name. It should take one input, array 1 . It should return one output, out 1 .

Write a function with your netid as the name. It should take one input, array1. It should return one output, out1.
array1 is an array with 3 elements.
Define the following values in your function:
m - The number that is the largest value in array1.
n - The sum of all of the numbers in array1.
k - The number in the 1st index of array1.
out1 should be m/k + n.
You may not use the commands min, max, or sum in this function. Assume that all elements of array1 are different.
B. How 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!