Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The file hw06-words.txt contains a list of 87,314 words. Write a program that reads each word from the file and outputs the word with the

image text in transcribed
The file hw06-words.txt contains a list of 87,314 words. Write a program that reads each word from the file and outputs the word with the most consecutive double letters. For example, the word tooth" has one pair of double letters, the word "address" has two pairs of consecutive double letters, and the word "committee" has three pairs of consecutive double letters. Multiple words may have the same most consecutive double letters. Output the number of pairs and one of them (depending how you write the code) on screen before the program ends. You may only use standard Ct+ string class and its functions. Don't use c-string! You may put the text file in any folders of your computer, but please only leave the file name (without path) in your program before submitting the homework, i.e, "hwe6-words.txt". Rubric: Please read GradingRubricGuidline.pdf on Blackboard 80% for the correctness of the code 20% for the documentation and the programming style, including but not limited to the following rules below. * Each function must be commented with a description of what it does, the role of its parameters and the meaning of its return value. Indentation level of your code must correspond to the nesting level. F3 F5 F6 F7 F8 F1O o/

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

Recommended Textbook for

Databases On The Web Designing And Programming For Network Access

Authors: Patricia Ju

1st Edition

1558515100, 978-1558515109

More Books

Students also viewed these Databases questions