+ 7
🗞 Challenge: Counting Words! 📰
This friend of mine, José Ramírez is the star editor of an important Internet news site. Yesterday he came into my office and asked me for a program that helps him to write best news articles, so he can staying at the top of news writers. He wants a program that allows him to count the total number of words in a news article, and count how many times each word appears in the article, putting most frequent ones at the top of the list, so he can changed them by it's synonyms.
10 odpowiedzi
+ 3
So, help our friend José, by writing a program that, in the most friendly way possible (José is an excellent writer, but is not an advanced computer user, though) does the next:
* Counts the total of words in a news article, that must be entered by user.
* Counts the total times each word appears in the article.
* Sorts the words by number, most frequent ones must be at the top.
* Show the results in a user-friendly way.
All languages are welcome, I hope you have fun coding this one! :)
---
PS: Not related posts, spam, etc, will be sent to -> /dev/null
+ 4
> My try in Ruby:
=> https://code.sololearn.com/c88yRTEVRFV4/#rb
+ 4
Thanks for the challenge 👍
Here's is:
https://code.sololearn.com/W1HXRaDvKO88/?ref=app
+ 3
https://code.sololearn.com/c87YjaeZF4fw/?ref=app
Short and sweet
+ 2
perhap the mix of these two:
https://code.sololearn.com/WqtvZsVN8AUH/#html
https://code.sololearn.com/Wh9fx6IHOt92/#html
+ 1
Here's my Ruby version... https://code.sololearn.com/cI9T63WF3075
0
If I could do Apache-PHP with sololearns interpreter, I would write the code.