This is another question from my study guide for my final exam. If you all could please give me some help.
Write a value returning function called "found" with parameters of a float array a float item and a integer length, that searches the array for any value greater than the value of item. If such a value is found function returns true otherwise returns false. Length is the number of components in the array.
string found(float myarr[], float item, int length);
{
while (int i=0; i<=(length-1);i++)
{
if (myarr[i] > item)
return "TRUE";
else
return "FALSE";
}
}