CSC 241: Introduction to Computer Science I Assignment 3 Due Tuesday, October 5th, 11:50 am Reading Review Chapter 3 and read Chapter 4 in Introduction to Computing using Python: An Application...





Write a function
findWord(). It takes two parameters. A string which represents a paragraph and string that represents a word to find in the paragraph. Note, let’s say you have a word “anything” and you search for “any”, it should not count anything. In other words, it has to be the exact word not a part of a word. Case must be ignored.




CSC 241: Introduction to Computer Science I Assignment 3 Due Tuesday, October 5th, 11:50 am Reading Review Chapter 3 and read Chapter 4 in Introduction to Computing using Python: An Application Development Focus by Ljubomir Perković. .Assignment Implement the functions below in the file hw3.py which can be found on the D2L site in the third week materials section. You should save the template file I provided and then modify that file by adding the bodies for the functions. When you do, make sure to remove the placeholder pass statements that are currently there. You must also write doc strings for every function. A submission without doc strings will not earn full credit. 1. Write a function findWord(). It takes two parameters. A string which represents a paragraph and string that represents a word to find in the paragraph. Note, let’s say you have a word “anything” and you search for “any”, it should not count anything. In other words, it has to be the exact word not a part of a word. Case must be ignored. 2. Implement a function vowelFinder () that takes in a paragraph. The function prints all the words that have vowel in it. Case is ignored. Pay attention to the first line of the output. http://d2l.depaul.edu/ 3. Implement a function lengths() that takes in a string representing a paragraph. The function return a list of the lengths of each individual word in the text. 4. Implement the function formatter() that takes in a string of words in a paragraph. The function prints each word in a column with 13 spaces, and the next column prints the same word with the first letter capitalized. Pay attention to output format and the first line. 5. Implement a function changer () that takes in a list of numbers and modifies based on an operation. The two types of operations supported are “add” and “subtract”. All other operations are ignored. The first parameter is a list of numbers, the second the operation and the third how much to add or subtract each number. Example below. Submitting the assignment You must submit the file holding all of the function definitions using the assignment 3 dropbox on the D2L site. Submit only a single Python file (csc241hw3.py) with all of your function definitions inside of it. Submissions after the deadline listed above will be automatically rejected by the system. See the syllabus for the grading policy. Grading The assignment is worth 100 points. Each problem is worth 20 points. http://d2l.depaul.edu/
Oct 04, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here