🗞 Challenge: Counting Words! 📰 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

3rd Oct 2017, 8:42 PM
noobcøder
noobcøder - avatar
9 Answers
+ 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
3rd Oct 2017, 10:27 PM
noobcøder
noobcøder - avatar
3rd Oct 2017, 9:38 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
7th Oct 2017, 9:47 AM
noobcøder
noobcøder - avatar
+ 4
Thanks for the challenge 👍 Here's is: https://code.sololearn.com/W1HXRaDvKO88/?ref=app
11th Oct 2017, 8:24 AM
LukArToDo
LukArToDo - avatar
+ 3
https://code.sololearn.com/c87YjaeZF4fw/?ref=app Short and sweet
4th Oct 2017, 2:21 AM
Kartikey Sahu
Kartikey Sahu - avatar
4th Oct 2017, 12:14 AM
ysraelcon
ysraelcon - avatar
19th Oct 2017, 7:59 AM
m_sudhu
m_sudhu - avatar
+ 1
Here's my Ruby version... https://code.sololearn.com/cI9T63WF3075
19th Oct 2017, 12:24 PM
Dennis
Dennis - avatar
0
If I could do Apache-PHP with sololearns interpreter, I would write the code.
3rd Oct 2017, 8:45 PM
Freezemage
Freezemage - avatar