Question: 7. Define a function named all_greater_than that checks (returns true or false) whether all elements in a given array are greater than a given (threshold)

7. Define a function named all_greater_than that checks (returns true or false) whether all elements in a given array are greater than a given (threshold) number. For example, if the given array is {5.5,3.15,7.1} and the given threshold number is 3.14, then the function should return true; for the same array, if the given threshold is 6, the function should return false
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
