You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
758 B
758 B
Modify GenerateSectionData in the following ways:
- it should take a second argument which is a list of Users
- replace the section where Instructors are generated according to config.NumberOfInstructors with a section that makes a list of users with Status "Instructor" from the Users argument
Remove NumberOfInstructors from the Config type and correct all instances of it in the code
Write a function GenerateInstructorAssignmentData that takes a list of Users and a list of Sections and returns an []InstructorsSections. This should pair instructors with sections, trying its best to distribute Sections evenly between instructors
Write a function SaveInstructorsSections that simply writes this list to a file called "instructors_sections.csv".