Another assignment problem
This one doesn't sound very hard but I wanted to 2nd opinions on the directions. They don't make very much sense to me. Here are the directions:
"Write a program that finds the "smallest" and "largest" in a series of words. After the user enters 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 the no word is more than 20 letters long. An interactive session with the program might look like this:
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
Hint: Use two strings named smallest_word and largest_word to keep track of the "smallest" and "largest" words entered so far. Each time the user enters a new word, use strcmp to compare it with the smallest_word; if the new word is "smaller," use strcpy to save it in smallest_word. Do a similar comparison with largest_word. Use strlen to determine when the user has entered a four-letter word."
Ok, here's my problem. Does it want me to arrange the words in alphabetical order or not? The example doesn't show it printing them out in alphabetical order or anything. Also, does it want the word to be four letters or twenty letters? It says to stop accepting input when four letters are entered but then it says assume no word is more than twenty letters. Does this make any sense to you guys?