Question: Can I please get help with this code I will upvote!!!! Write a C++ program that acts fike a simple counting tool for collecting information
Write a C++ program that acts fike a simple counting tool for collecting information from textual files of documents prepared for a simple scripting language interpreter: An input file for the simple scripting interpreter includes two types of data, commented lines and scripting code lines. A commented line is recognized by either the two characters "A 4 " or " A " at the beginning of the line, which would be skipped by the scripting interpreter. All other noncommented lines are considered as part of the scripting code, including any blank lines with whitespace. The progrom for the simple counting tool should read lines from a file until the end of file. The program should prompt the user for the file name to read from. The program should open the file for readingrand if the file cannot be opened, it should print the message "File cannot be opened "; followed by the filename, and exit. After reading the contents of the input file, the program should print out the total number of lines, the number of commented lines, the maximum length of commented lines, the maximum length of non-commented lines, the commented line of maximum length delimited by double quotes, and the noncommented line of maximum length delimited by double quotes. See the examples in the presentation stides for the expected outout format
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
