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

2. The “word” is assumed to beany series of nonblank characters; words may be se

ID: 3616407 • Letter: 2

Question

2.     The “word” is assumed to beany series of nonblank characters; words may be separated by anynumber of white-space characters. Any number of words may appear ona line,  
including none. You may assume that no word is more than 12characters long. And maximum number of words would be 50.

3.     The program must work even if the inputfile is empty. If this is the case print a message saying that“the input file is empty” and thenterminate the program.

4.     The program must test the number ofcharacters per word. If a word consist of more than 12 characters,the program should ignore that word and continue. That word wouldalso be ignored in the total number of words of 50.


1.     Whendetermining if two words are anagrams, the program must treat upperand lower case letters as equivalent (thus “Pans” and“snap” are anagrams) and ignore punctuation marks(“it’s” and “Sit” are anagrams).However, the program must display words with their originalcapitalization and punctuation – as shown above.

2.     The “word” is assumed to beany series of nonblank characters; words may be separated by anynumber of white-space characters. Any number of words may appear ona line,  
including none. You may assume that no word is more than 12characters long. And maximum number of words would be 50.

3.     The program must work even if the inputfile is empty. If this is the case print a message saying that“the input file is empty” and thenterminate the program.

4.     The program must test the number ofcharacters per word. If a word consist of more than 12 characters,the program should ignore that word and continue. That word wouldalso be ignored in the total number of words of 50.

5.     The program must also test the number ofwords. If there are more than 50 words, print a message saying that“there are more than 50 words in the inputfile” and then terminate the program

Explanation / Answer

any help starting the code?

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote