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