Unformatted Attachment Preview
Chapter 9: Program 6 – Repeated Letters
CSCI111: Introduction to Computing
Assigned: Friday, April 17, 2020
Due: Friday, April 24, 2020 at midnight on Blackboard
a. Write a function named find doubleletter(word) which returns True if the word has a letter that is
doubled in the word. For example, if the word is command then the function would return True because
m is doubled. But if the word is repeated then the function would return False because while e is in
the word multiple times, it is not repeated in adjacent positions. That is the letter must be beside itself.
b. Write a function that searches words.txt and counts the number of words that have double letters of
any kind. You should use the function from part a in your code for part b.
Requirements for this program are as follows:
1. Your program must include a comment header with Author, Assignment (Program 6), Description,
and Due Date
2. Your function for part a must be named correcly
3. Your function for part a must correctly find double letters
4. Your function in part b must use your function from part a
5. You should print the final count of words in a clear and understandable way.
6. Your program that you submit must be a script in a file named program6 WillM.py where you
replace WillM with your first name and last initial.
7. Submit just that program on Blackboard under Chapter 9, Program 6.
Purchase answer to see full
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more