Question: first pic question 2nd and 3rd answer u give here and i tried in c++ this is the result whar should i do make it

 first pic question 2nd and 3rd answer u give here and

first pic question

i tried in c++ this is the result whar should i do

make it run 2. Find the checksum and validate if there are

2nd and 3rd answer u give here and i tried in c++ this is the result whar should i do make it run

transmission errors that occurred. Consider the data unit to be sent: 011101000100010000001111.

2. Find the checksum and validate if there are transmission errors that occurred. Consider the data unit to be sent: 011101000100010000001111. Upload a photo of your answer sheet showing your solution. (20 points) assign1.cpp #include #include #include using namespace std; // structure defintion struct WordCount { //two data members char word[31]; int count; }; //Function to convert string upper case void stringToUpper(char *s) { for(int i=0;s[i]!='\0';i++) //repeat until end of string char null { if(*(s+i)>=97 && *(s+i)>word;//read the word while(!infile.eof()) //repeat until end of file { stringToUpper(word);//convert to upper case stripPunctuation(word);//remove punctuation characters int found=searchForWord(word, wordArray,count);//search word if(found==-1) // when not found { strcpy(wordArray[count].word, word);//store as new word wordArray[count].count=1;//first count is 1 int found=searchForWord(word, wordArray,count);// search word if(found==-1) //when not found { strcpy(wordArray[count].word,word);//store as new word wordArray[count].count=1;//first count is 1 count++;//increment count } else //when found wordArray[found].count+=1;//increment existing count infile>>word;//read the next words } infile.close();//close the file return count;//finally return count } //Function to sort words void sortWords(WordCount wordArray[],int numWords) { for(int i=0;i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!