Question: Assignment 7 Read and Create File Write a text analyzer program that reads any text file. The program prints a menu that gives the user

Assignment 7
Read and Create File
Write a text analyzer program that reads any text file.
The program prints a menu that gives the user the options of counting lines, words, characters, or sentences (one or more words ending in a period), or all the above.
Provide a separate function for each option.
At the end of the analysis, write an appropriate report.Chosse action: *Lines Count. *Words Count. *Characters Count. *Sentences Count. *All of the above. *Quit *Please type your choice: 5Enter File name: comments.txtFile: comments,txtNumber of Lines =16Number of words =155Number of characters =608Number of Sentences =8Chosse action: *Lines Count. *Words Count. *
Post your Code and the six Screenshots here:
Assignment 7 Read and Create File Write a text

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!