2023 ORIGINAL REQUIREMENTS Develop a software application that will do the following Allow user to enter a file name either by | Assignment Collections
Computer Science 2023 Develop a software application
2023 ORIGINAL REQUIREMENTS Develop a software application that will do the following Allow user to enter a file name either by | Assignment Collections
ORIGINAL REQUIREMENTS: Develop a software application that will do the following: Allow user to enter a file name, either by command line, prompt, or menu. Open specified file. If multiple files are specified or a directory is specified (not required, but a nice optional feature), the program operates on each file in sequence. ? For Each File: “Advanced” software developers: read each line in the file into a linked-list with one line in each “node” of the list. Count the total number of Lines of Code, “LOC”, contained in the file. ? Report the name of the file. Report the total number of LOC contained in the file. Close the input file. ADDITIONAL NEW/CHANGED REQUIREMENTS – Add the following functionality to a new function – countFuncLOC();: Count the Function LOC: Count the number of LOC contained in each function in the file. For each function in the file: Report the name of the function. Report the number of LOC contained in the function. The main program performs the following operations: Prompt the user for file name input Open the file Invoke the Function LOC counting function Report of the File Name and file LOC count, each function name and the corresponding function LOC Close the file BOTH the Function LOC and File LOC counting functionality shall be performed by a function called “countFuncLOC”. countFuncLOC receives a pointer to a valid open file and a pointer to a table for function data as passed parameters, and returns the integer number of LOC in the file. The associated C prototype is as follows: int countFuncLOC (FILE *filePointer, FUNCDATA *funcDataPtr); /* C-language function prototype */ int countFuncLOC (ifstream &file, FUNCDATA *funcDataPtr); // C++ function prototype countFuncLOC may invoke the countLOC function if convenient. Otherwise, countFuncLOC will “absorb” the countLOC functionality. The Function LOC data shall be stored in a table defined in the main…
We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.