Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I have been asking for the solution of this c++ program for two weeks and no one is answering! Your task for this lab is
I have been asking for the solution of this c++ program for two weeks and no one is answering!
Your task for this lab is to complete the implementation of a program that processes acsv file containing raw grade data, and produces a report file as a.txt Starter Code The framework of the program has been given to you in the starter code, including useful constants, function prototypes, and the main) function. The parts of the program that you need to complete have been marked with comments I TODO (n): . Input File Format The input file will be formatted as follows: Columns, also known as fields, are separated by commas and rows, also known as records, are separated by newlines o Note: files formatted in this way can be opened and viewed as a table with a program such as MS Excel or Open Office The first row will be a header for the file containing titles for each field and should be ignored All other rows will be student records consisting of comma-separated fields: o student name student ID o test scores The test scores will be a comma-separated list of 4 test results For example, the beginning of such a file might look like this: Name, ID, scorel, score2, score3, score4 Fred Flintstone,5563w,70,82,55,80 Barney Rubble, q5771x, 65, 62,0,71 You will have to parse, or separate out, each field from a given line of text. Output File Format The output file will be a neatly formatted report showing the student name, their four scores, the lowest score (dropped), the total score, average, and resulting grade letter. For example, given the input above, the report would look like this: Name, ID, scorel, score2, score3, score4 Fred Flintstone, q5563w, 70,82,55,80 Barney Rubble,q5771x, 65, 62,0,71 You will have to parse, or separate out, each field from a given line of text. Output File Format The output file will be a neatly formatted report showing the student name, their four scores, the lowest score (dropped), the total score, average, and resulting grade letter For example, given the input above, the report would look like this: Name Scores (Low) Total AverageGrade 77.33 66.00 Fred Flintstone 70 82 55 80 55) 65 62 0 71 ) 232 Barney Rubble Note that various field widths have been defined as constants near the top of the source file. Be sure to use these named constants, rather than hard-coding "magic numbers" when you get to writing the code to output the formatted record. Implementing the helper functions The program is written in a modular way, using functions to "abstract' away details, so that the overall flow of the program is easy to understand. The main) function calls other functions to do the actual work. Your job is to fill in the details by implementing many of these 'helper" functions. The Top-Level Functions string getinputFilename The program starts by asking the user for the name of the input file. To do this it invokes the getInputFilename() function. This function should Prompt the user to enter a filename. . Validate that the filename has the form: o "rawgrades-Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started