Finds the smallest and largest in a series of words


Discuss the below:

Q: Create a program that finds the "Smallest" and "Largest" in a series of words. After the user enter the words, the program will determine which words would come first and last if the words were listed in dictionary order. The program must stop accepting input when the user enters a four-letter word.assume that no word is more than 20 letters long. An interactive session with the program might look like.

Enter word: dog
Enter word: zebra
Enter word: rabbit
Enter word: catfish
Enter word: walrus
Enter word: cat
Enter word: fish

Smallest word: cat
Largest word: zebra

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Finds the smallest and largest in a series of words
Reference No:- TGS01937280

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)