Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In Python 2. 76% 12:10 Lab 4 Hide Assignment information Instruction Lab 4: Word Frequencies Description Write a program that prompts the user for a

image text in transcribed

In Python

2. 76% 12:10 Lab 4 Hide Assignment information Instruction Lab 4: Word Frequencies Description Write a program that prompts the user for a list of words separated by spaces. Your program should the call a function to output those words and their frequencies. The function does not have to return aww you can print the output from within the function. Use the usual header comments with name, date description and naming convention strame lastame 104 ph and submit to D2L no later than 1158 on Thursday Feb 13, 2020. Remember you can resubmit more complete versions over the top of earlier Sample Transcript Etter words: The important part of the United States of America is the united part Points 2 points - the program collects the sentence from the user and splits all of the words into a 2 point this of the work from US sont u ne by one 2 points-cach word in the output is followed by the number of times it occurs in the 1 point the param nors uppercase , the counted along with the 1 point the program strips punctuation marks so part period the counted along with part 1 point-redundant counts are eliminated lie, "the 3" is output only once, not three times 1 point- put the code in a function that you can call like this count frequencieswordlist Tips The order in which listed the points down is the order in which I think it makes the most sense to tackle writing the program. For example, the first thing I try to get working would be the input from the user. You're getting a string of words separated by spaces and Spleting them into a list. As usual, the documentation can help a lot on this assignment especially the part about common ne petions Getting some output to the Scris a good next step in order to your programa s worth 2 points so it's Dretty important. Getting the Count of each and is listed third and worth 2 points so you get the first three steps of the assignment working you've got more than half the points with the last hour points are for additionalenincements that you can mo Sub Cancel

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions