Question: Part 2 : DVC Schedule Check Each section - term combination is supposed to be unique - - that is , there should never be

Part 2: DVC Schedule Check
Each section-term combination is supposed to be unique -- that is, there should never be two separate entries with the same section and term, with different course names. It's okay for COMSC-210-8301 in SP2016 to appear more than once -- that's a duplicate and we already skip the extra entries. But it's NOT ok to have both COMSC-210-8301 and CNT-120-8301 in SP2016. There can be "cross-listed" courses, like ARCHI-126 and ENGIN-126 in Fall 2013 in the same room at the same time with the same instructor (Tumlin, MW 6:00-8:50pm ET-124), but they always have different section numbers, like ARCHI-126-8349 and ENGIN-126-8346.
The DVC Admissions Office suspects that there are at least a few such invalid entries in their database, but their staff is having trouble using Excel to locate them. They heard about what we are studying in COMSC-210, and they want to know if we can help determine if there are any such entries, and what they are.
Write DvcScheduleCheck.cpp to solve the problem. Output how many term-section pairs there are with multiple courses associated with them. If there are none, output a message to that effect. But if there are any, output each of them in a format that you think DVC Admissions would understand and find useful. Here is the sample output Download outputusing the DVCSchedule.txt file we use this semester.

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!