Question: Your task is to write a program that allows the user to enter text and then reports some information about that text. Your program

  

Your task is to write a program that allows the user to  

Your task is to write a program that allows the user to enter text and then reports some information about that text. Your program should do the following: 1. [1 mark] Have your program repeatedly ask the user for words to enter, until they enter "Done". 2. [3 marks] Then (only after the user has entered "Done"), print a list of all the words the user entered, but do not print the same word more than ance. For example, f the user entered "Comp", "Math", "Bio", "Math", "Chem", "Comp", "Comp", then "Done", the program would then print "Comp", "Math", "Bio", "Chem".- 3. (6 marks) Finally, your program should let the user know which word accurred most frequently among those entered in part 1. Using the above exampie, in this part the program would report that "Comp" was the most frequently entered word. If there is more than one word that occurs the most frequently, the program should report them all (eg, if the user entered "Comp" "Math" "Comp" "Bio" "Math the program should report both "Comp" and "Math").

Step by Step Solution

3.53 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

To solve this problem we need to write a program that allows a user to enter words until they type D... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!