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

Script: findstring The purpose of the script is to find the longest word in the

ID: 3627109 • Letter: S

Question

Script: findstring

The purpose of the script is to find the longest word in the dictionary that contains the string specified on the command line. It should only display the top 5 words that contain this string, sorted by the string position in each word. Use the system dictionary located at mnt/usr/dict/word2. If the script is invoked findstring nova the answer may show some of the following words sorted by the position of the string nova in each word: novaculate, innovation, monovariant, equinovarus, decennoval

Explanation / Answer

Here's a little program I wrote ages ago in Prog.-I where we used C++, that could fairly easily be edited to work for your purposes. Not expecting an A+ for this, but it's late, I'm beat and figured a little help was better than none at all. Would recommend you check-out & bookmark this site, is an excellent place for help & tips for learning programming; #include #include using namespace std; int main() { string sentence; int length = 0, num_vowels = 0; cout
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