Write a program in Icon that will print the k most common words in its input, one

Question:

Write a program in Icon that will print the k most common words in its input, one per line, with each preceded by a count of the number of times it appears. If parameter k is not specified on the command line, use 10 by default. You will want to consult the Icon manual (available online [GG96]). In addition to suspend, upto, and write, discussed in this text, you may find it helpful to learn about integer, many, pull, read, sort, table, and tab. When fed the Gettysburg Address, your program should print:

13     that
9        the
8        we
8         to
8      here
7            a
6        and
5           of
5    nation
5       have

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: