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

Complete the function for me, thanks. C++ Function name: getTotal NumberNon Stop

ID: 3753276 • Letter: C

Question

Complete the function for me, thanks. C++

Function name: getTotal NumberNon StopWords Purpose: compute the total number of words saved in the words array (including repeated words) @param list - an array of wordltems containing non-stopwords @param length the length of the words array @return the total number of words in the words array (including repeated words multiple times) int getTotalNumberNon StopWords(wordltem listl, int length); *Function name: array Sort Purpose: sort an array of wordltems, decreasing, by their count fields @param list - an array of wordltems to be sorted @param length the length of the words array void array Sort(wordltem list], int length);

Explanation / Answer

// Hey here is your solution.

// If it helps, please do upvote

//There is no details of "wordItem" provided (It can be class or struct). Please provide this information so that solution will be updated accordingly.

//Based on available information. Solution is as follows

void arraySort(wordItem list[], int length)

{

wordItem temp;

}

int getTotalNumberNonStopWords(wordItem list[], int length)

{

//Assuming wordItem is a class and count is attribute holding count of words.

int totalWordCount = 0;

for(int i=0; i<length; i++)

totalWordCount = totalWordCount + list[i].count;

return totalWordCount;

}