Question
WRITE A C++ CODE THAT FOLLOWS THESE GUIDELINES UCLA wants to schedule classes so that as many students as possible are able to take as
WRITE A C++ CODE THAT FOLLOWS THESE GUIDELINES
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.
Some Helpful Source Code & input files:
https://we.tl/t-KuHcC0fIeG
FRENLOO Example "whoHasConflicts.txt" output (I only printed last names, the whole name would be better) for that class pair For the course pair: ACCT2101: ChBE3110 Srini For the course pair: ACCT2101: COE3001 Mikel Pateler For the course pair: ACCT2101: CS4400 Borzen Chop Grandad Hollow Kinner Sent FRENLOO Example "whoHasConflicts.txt" output (I only printed last names, the whole name would be better) for that class pair For the course pair: ACCT2101: ChBE3110 Srini For the course pair: ACCT2101: COE3001 Mikel Pateler For the course pair: ACCT2101: CS4400 Borzen Chop Grandad Hollow Kinner Sent
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