I may be wrong but I don't think it is necessary to have a second array. Using a loop to iterate once through the array do the following: 1) assign "hi" to first element array[0] 2)go to the next element in the array[i=1] and assign it to "hi" iff it is larger than "hi". Look at element array[i-1] (array[0]) and assign ...
please write the programe in c language for this Accept 5 Employee details to find highest salary employe name using for loop and arrays Thanks in advance The experts on this site are more than happy to help you with your problem but we cannot do your assignment for you. Attempt the assignment yourself first and post questions regarding any difficulties ...
I am working on this program. The array has 10 scores. (there is more to this program.) Does the last "for" section make sense? /*Defines a global constant called N throughout the file. Note that N = 10. */ #define N 10 #include using namespace std; /*Define a StudentScores class with methods called (1) getHighestScore find the highest score ...
I am trying to find the highest number in an array along with its element. I have already the algo. that I truly thought would work. But it doesn't. Whats wrong? Here is what I have so far. Thanks in advance. #include int main(void) { int arr[20] = {9, 11, 16, 22, 77, 33, 55, 33, 22, 87, 23, 76, ...