i need help translating this function to C++

November 22, 2010 at 13:30:49
Specs: Windows 7
can you please help me translate this function to C++ code and explain each step thanks!

FUNCTION minimumIndex
PARAMETER 1: An integer array
PARAMETER 2: An integer specifying the starting index
PARAMETER 3: An integer specifying the ending index
RETURNS : An integer representing the index of the minimum
value in the array from the starting index to
the ending index
BODY of minimumIndex
Set the minimumIndex to be the starting index
Set the currentIndex to be one more than the starting index
Loop around until currentIndex is equal to ending index
If element at currentIndex is less than minimumIndex
Set minimumIndex to be the currentIndex
END If
END Loop
Return minimumIndex
END BODY of minimumIndex


See More: i need help translating this function to C++

Report •

#1
November 22, 2010 at 23:58:25
if it is your hamework, i will help you in doing your hemework. but you also have to show some effort. show what have you tried yet. i apologize for grammar and spellings.

.............................................................................................................
_Adnan_


Report •
Related Solutions


Ask Question