Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

(i.e., string) as an argument. The function trims any leadingand trailing whites

ID: 3617784 • Letter: #

Question

(i.e., string) as an argument. The function trims any leadingand trailing

whitespace characters from the given string and it also replacesany occur-

rences of space characters with underscores. You decide how thefunction

"returns" the modified string. Note: Do not use any "stringfunction" that

Function: void My_Stringer (char init_str[], char new_str[]){

    Pseudocode:

    // Find where the given string begins,bypassing any whitespace.

    Set Index to 0

    While (init_str[Index] == Space Character ORinit_str[Index] == Tab Character)

        Increment Index

    End While

    Set Start_Index to Index

    // Find where the given string ends.

    // Find where the given string ends,bypassing any trailing whitespace.

    // Create new string (i.e., new_str),replacing space characters with underscores.

End Function

Explanation / Answer

please rate - thanks #include using namespace std; void My_Stringer (char[], char[]); int main() {char input[50],output[50]; cout