Hey Guys, Im working on some homework and need some help
We have 2 CSV Files that we will be working from
One file has the Name of student, and courses hes taken
The other file has Class To Be Taken, and Prerequisites
Basically What I need to do is
If the First File has
Bob, A, B, C
and in the second file
D, A, B,C
I would output, Bob Took A, B, C
and Bob is Eligible for D
I am supposed to use Data Structures so what would be the best way to get started in this
So far in my program ive read in both files just using file input and strtok to separate stuff up
Current output looks something like this:
Eric took MATH 1426, CSE 1310, CSE 2315, CSE 1320,
and is eligible for
To Take: CSE 1320
PreReq: CSE 1310
To Take: CSE 2315
PreReq: CSE 1310 MATH 1426
To Take: CSE 1325
PreReq: CSE 1320 CSE 1310
To Take: CSE 2312
PreReq: CSE 1320 CSE 1310
To Take: CSE 2320
PreReq: CSE 2315 CSE 1320 CSE 1310 MATH 1426
To Take: CSE 3310
PreReq: CSE 1325 CSE 2320 CSE 2315 CSE 1320 CSE 1310 MATH 1426