flâneur — a map of the web's best reading

HW14.1 — ECS 32A | PrairieLearn

us.prairielearn.com · 105 words · saved by 1 readers

Explain, in English, how to solve the problem given in the Programing Problem section. When writing your explanation We will be looking for two things when grading your assignment Write a program that displays the top N most occurring words in a file along with the number of times the word appeared. All input will be valid. You can find some sample files in programming_prompts/FilesAndTheFileSystem/most_common_words/SampleFiles.zip User input has italicized to help you differentiate what is user input and what is program output. You do not need to italicize anything. Please download programming_prompts/FilesAndTheFileSystem/most_common_words/shake_it_off.txt to see its contents. Enter the name of the file: _shake_itoff.txt Enter how many top words you want to see: 2 The following words appeared 78 times each: shake The following words appeared 70 times each: i Enter the name of the file: _shake_itoff.txt Enter how many top words you want to see: 5 The following words appeared 78 times

Explore this link on the map →

saved by