Question: A data file for this exercise will consist of several lines of text that form sentences. The text may include letters, punctuation marks, and/or digits.

A data file for this exercise will consist of several lines of text that form sentences. The text may include letters, punctuation marks, and/or digits. Each sentence will be terminated with either a period (.), an exclamation mark (!), or a question mark (?). Design and implement a complete C++ program that will display your name, lection and lab section #s, and exercise # using Linux redirection, read the contents of the file and compute the average number of letters per sentence in the file count the number of digits in the file display the average with a label and 3 digits to the right of the decimal display the digit count with a label When the program compiles and runs correctly, use the mail utility to email a copy of the program file to your lab instructor. Make sure the subject line of your email includes your name, lecture and lab section #s, and the exercise # if you wish to receive full credit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
