Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In this assignment, we will analyze the body text of a book, which you can retri

ID: 3775771 • Letter: I

Question

In this assignment, we will analyze the body text of a book, which you can retrieve from the Gutenberg project: http://www.gutenberg.org/cache/epub/97/pg97.txt The file is in plain text and has a large number of lines. You can have a peek at the text opening the file with either Notepad or Wordpad after downloading the file to your PC. Write a C++ program that finds out:

1. The number of text lines.

2. The total number of letters (upper or lower case).

3. The number of times the word “the” (or “The”) independently appears. Note that you should not add to the count words that contain “the”, such as “Therefore”.

4. Which of the following symbols appear more frequently? ‘.’ (the period), ‘-‘ (dash), “ (double quotes), or “?” (question mark)

5. What is the longest word?

Explanation / Answer

output:

enter string termanate by # hello cheggg !!

hai,how are u?

particulars details

no.of lines 2

no.of words 6

no.of characters 27

longest word cheggg