Problem description Frequency analysis of words is commonly used in several fields like cryptography. In this problem, you need to write a program to capture set of words from the user and calculate the frequency of the most occuring words in the english language https://en.wikipedia.org/wiki/Most common words in English 2. Based on the test phrases that you used to test the program, it would be interesting to see if you notice any deviations from the ranking. Your program must do the following:- 1) While the user does not enter the word "quit" (the case doesn't matter) • Prompt user to enter a sentence • Split the sentence into words based on space character ( ') separator. 2) Display the following information about the words present in the sentences/phrases entered by the user entered. 1) Total number of words 2) Frequency of top ten frequently used words, "the", "be", "to", "of", "and", "a","in","that","have""i" © Jinu Kabala
Problem description Frequency analysis of words is commonly used in several fields like cryptography. In this problem, you need to write a program to capture set of words from the user and calculate the frequency of the most occuring words in the english language https://en.wikipedia.org/wiki/Most common words in English 2. Based on the test phrases that you used to test the program, it would be interesting to see if you notice any deviations from the ranking. Your program must do the following:- 1) While the user does not enter the word "quit" (the case doesn't matter) • Prompt user to enter a sentence • Split the sentence into words based on space character ( ') separator. 2) Display the following information about the words present in the sentences/phrases entered by the user entered. 1) Total number of words 2) Frequency of top ten frequently used words, "the", "be", "to", "of", "and", "a","in","that","have""i" © Jinu Kabala
Operations Research : Applications and Algorithms
4th Edition
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Wayne L. Winston
Chapter19: Probabilistic Dynamic Programming
Section19.4: Further Examples Of Probabilistic Dynamic Programming Formulations
Problem 7P
Related questions
Question
Python
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps with 1 images
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr