Prepare a file containing implementations of the string


Problem

1. Prepare a file containing implementations of the String methods and the functions for String processing. This file should be suitable for inclusion in any application program that uses strings.

2. Different authors tend to employ different vocabularies, sentences of different lengths, and paragraphs of different lengths. This project is intended to analyze a text file for some of these properties.

(a) Write a program that reads a text file and counts the number of words of each length that occurs, as well as the total number of words. The program should then print the mean (average) length of a word and the percentage of words of each length that occurs. For this project, assume that a word text analysis consists entirely of (uppercase and lowercase) letters and is terminated by the first non-letter that appears.

(b) Modify the program so that it also counts sentences and prints the total number of sentences and the mean number of words per sentence. Assume that a sentence terminates as soon as one of the characters period (.), question mark (?), or exclamation point (!) appears.

(c) Modify the program so that it counts paragraphs and prints the total number of paragraphs and the mean number of words per paragraph. Assume that a paragraph terminates when a blank line or a line beginning with a blank character appears.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Prepare a file containing implementations of the string
Reference No:- TGS02643078

Expected delivery within 24 Hours