Develop a software application

profileSuperClass
 (Not rated)
 (Not rated)
Chat

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...

    • 10 years ago
    Develop a software application A+ Tutorial use as Guide
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      develop_a_software_application.txt
    • attachment
      develop_a_software_application_2.txt