Question: C++ PLEASE HELP ASAP a) Using the input file students.txt, build a C++ map (or unordered_map) that has a vector of all students in every

C++ PLEASE HELP ASAP

C++ PLEASE HELP ASAP a) Using the input file students.txt, build a

a) Using the input file students.txt, build a C++ map (or unordered_map) that has a vector of all students in every course as the value with the course name as the key. Your code must work for any size file and any other courses that may exist, CSC382 for example. You may assume each line in the input file two string. The first is the course identified followed by a first name. Make your code general enough so any number of students can be listed in any course. (20 points) students. txt Math141 Joe CSC335 Chris Math141 Chris CSC335 Kim Eng101 Kim CSC335 Devon Eng101 Devon b) Also, write the C++ code to generate the following output with the given small file above. Output the key, followed by a colon ":", followed by the first names in the vector separated by blank spaces. (14 points) CSC335: Chris Kim Devon Eng101: Kim Devon Math141: Joe Chris

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