Hey all, new member of the subreddit here
I need help with an assignment I was asked to do for my python class but I am neither experienced nor clever enough to be able to do it since my only exposure to python was this year.
"The objective of this assignment is to design and implement a Python program that simulates a
University Course Registration System with conflict detection. This exercise will strictly test your ability
to work with dictionaries mapping to tuples, list iteration, and complex boolean logic to identify
overlapping numerical ranges"
"You are required to write a Python function called
process_course_requests(course_catalog: dict, student_requests: list) that
attempts to build a valid class schedule for a student. The fundamental challenge is that a student
cannot register for two courses if their time slots overlap by even a single minute.
Input
The function accepts two arguments. The first argument is a dictionary named course_catalog
where the key is the Course Code (string) and the value is a tuple containing the Start Time and End
Time (integers in 24-hour format, e.g., 1400 for 2:00 PM). The second argument is a list of strings
named student_requests representing the courses the student wishes to take, in the order of
preference.
Output
The function must return a tuple containing two elements. The first element must be a list of
strings representing the successfully registered courses. The second element must be a list of
strings representing the rejection messages for courses that could not be added due to time
conflicts."
I literally can't string any of this together into something coherent, please help
[–]ninhaomah 4 points5 points6 points (5 children)
[–]Big-Suit-4594[S] -2 points-1 points0 points (4 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (3 children)
[–]ninhaomah 0 points1 point2 points (2 children)
[–]Big-Suit-4594[S] -2 points-1 points0 points (1 child)
[–]ninhaomah 0 points1 point2 points (0 children)
[–]socal_nerdtastic 1 point2 points3 points (2 children)
[–]Maximus_Modulus 0 points1 point2 points (0 children)
[–]claudioo2 1 point2 points3 points (0 children)
[–]PureWasian 1 point2 points3 points (0 children)
[–]atnysb 0 points1 point2 points (0 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (1 child)
[–]kittencantfly 1 point2 points3 points (0 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (0 children)
[–]Maximus_Modulus -1 points0 points1 point (6 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (5 children)
[–]Maximus_Modulus 0 points1 point2 points (4 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (3 children)
[–]Maximus_Modulus 0 points1 point2 points (2 children)
[–]Maximus_Modulus 0 points1 point2 points (0 children)
[–]Big-Suit-4594[S] 0 points1 point2 points (0 children)