Question: Write a C++ program that reads a file input.csv, containing grades. Input.csv is ordered such that column 1 is name, column 2 is email, column

Write a C++ program that reads a file input.csv, containing grades. Input.csv is ordered such that column 1 is name, column 2 is email, column 3 is Student ID number, and column 4 is student's score. Use the Regex class to parse each row in input.csv. Create a hash table using students ID number as a key and students score as a value (key-value pair). Resolve collisions using the chaining method. Read another file, roster.csv containing students grades (= class grading book). Use the Regex to parse each row in roster.csv. Look up the hash table by using the parsed ID number and recover the corresponding quiz score. Finally, create a new file output.csv with appended scores.

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 Databases Questions!