Array problem.
The stuff in bold is where im havind difficulty.
The whole problem follows:
Enable the user to submit a paragraph of text using a text area form element. Convert the
submitted text into an array of words. Provide the user with two neatly printed lists.
• The first list should show all the words in the paragraph in alphabetical order with
duplicates removed.
• The second list should show all the words in the paragraph with a corresponding
number indicating how many times the word was used in the paragraph. Sort the list
from the most to the least used words.
Clean up the text before you start the computation
(i.e. remove punctuation marks).
The stuff in bold is where im havind difficulty.
The whole problem follows:
Enable the user to submit a paragraph of text using a text area form element. Convert the
submitted text into an array of words. Provide the user with two neatly printed lists.
• The first list should show all the words in the paragraph in alphabetical order with
duplicates removed.
• The second list should show all the words in the paragraph with a corresponding
number indicating how many times the word was used in the paragraph. Sort the list
from the most to the least used words.
Clean up the text before you start the computation
(i.e. remove punctuation marks).