Question: PLEASE WRITE ( very in depth) PSEUDO CODE THAT would solve this C++ problem. UCLA wants to schedule classes so that as many students as
PLEASE WRITE ( very in depth) PSEUDO CODE THAT would solve this C++ problem.
UCLA wants to schedule classes so that as many students as possible are able to take as many classes as they want. This is opposed to just picking times classes will be offered and then seeing if students can make the times fit their schedules. UCLA will ask students to tell UCLA what classes they want to take before registration. Using this information, UCLA will use your program output to enter into the registration system the time of day schedule for all UCLA classes that maximizes all students getting all the classes they wanted.
Write some code to help with this process. Write a program using object oriented classes that takes as input a text file containing a list of courses (see file 2018ClassesLongTest.csv) and their instructors and another file (see 2018StudentsLongTest.csv) that contains a list of students and the courses they want to take. Your code should ask for the name of each of the two input files (not hardcoded) so the instructor can run both your test files you create to test your own code as well as new different test files without recompilation each time. Output a text file conflict matrix (in a file named theConflictMatrix.csv) that lists each course across the top as well as the left side and includes the number of students that want to take both courses in the corresponding row and column. The conflict matrix should be output in a csv file format (google CSV excel file format to get details on what a CSV file is) that excel can read and display since it would be hard to work with such a large text file as the output, and excel is a tool that is good for doing that sort of thing. You should use a two dimensional vector in your code in which the rows and columns represent a course and each location in the 2d vector contains an object. This object should contain a list of students with conflicts with that row and column course pair. In a second output file which is a plain text file (not .csv) named whoHasConflicts.txt print out each course pair and list of students with a conflict with that course pair.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
