subject
Engineering, 22.04.2020 02:22 kjdog03

Who_meets prereqs (passed_rosters, desired_prereqs) : Description: There exist certain classes that are restricted by one or more prerequisites, or classes that you must pass before you can enroll in the restricted class. The Registrar knows who has passed certain courses, and they know the sequence of prerequisites that must be met, but they are having a hard time figuring out who actually meets these prerequisites. Determine the set of students who meet the given prerequisite criteria. Parameters: passed_rosters, a dictionary of sets as described above (only this time, this structure represents the students who have passed a particular course). desired_prereqs, a list of strings that described the prerequisites that must all be met. desired_prereqs will contain one of two possible string types. A single course name means that the student must have passed that course. Two course names with an "OR" in between means that the student must have passed at least one of those two courses. A student must meet each of the individual criteria in this list in order to be included in the result. Return value: a set containing the names of all students who meet the prerequisite criteria Examples: refer to the last page. check_prereqs (rosters, passed rosters, all prereqs): Description: The Registrar needs to verify that everyone enrolled in courses for next semester are allowed to be enrolled for those courses based on each course's list of prerequisites. Build and return a dictionary of course & student set pairs to report on each student who was enrolled in a course but did not meet the prereqs for that course. If no student is incorrectly enrolled in a course, this dictionary should be empty. You can assume that if someone meets the prereqs for one course, then will satisfy the prereqs for all all those prereqs, so on and on so forth. In other words, if course X requires course Y, and course Y has its own prereqs A, B, and C, you don't need to ensure that everyone in course X has passed A, B, and C. You only need to check that the students in course X have all passed course Y. Parameters: rosters, a dictionary of sets as described above. passed_rosters, a dictionary of sets as described above (this time, its passed classes instead). all_prereqs, a dictionary of lists of prerequisite strings as seen in the who_meets_prereqs function. Return value: a dictionary of courses (keys) and sets of student names who are enrolled but did not meet the prereqs for that course (values) [could be empty!] Examples: refer to the last page.

ansver
Answers: 1

Another question on Engineering

question
Engineering, 04.07.2019 16:10
The force on a cutting tool are 2600n vertically downward and 2100 horizontal. determine the resultant force acting on the tool and the angle at which it acts.
Answers: 1
question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 19:10
The air in an automobile tire with a volume of 0.015 m3 is at 32°c and 140 kpa gage. determine the amount of air that must be added to raise the pressure to the recommended value of 206 kpa gage. assume the atmospheric pressure to be 128 kpa and the temperature and the volume to remain constant.[r-0.287 kj/kgk]
Answers: 3
question
Engineering, 06.07.2019 03:10
Tom is having a problem with his washing machine. he notices that the machine vibrates violently at a frequency of 1500 rpm due to an unknown rotating unbalance. the machine is mounted on 4 springs each having a stiffness of 10 kn/m. tom wishes to add an undamped vibration absorber attached by a spring under the machine the machine working frequency ranges between 800 rpm to 2000 rpm and its total mass while loaded is assumed to be 80 kg. a) what should be the mass of the absorber added to the machine so that the natural frequency falls outside the working range? b) after a first trial of an absorber using a mass of 35 kg, the amplitude of the oscillation was found to be 10 cm. what is the value of the rotating unbalance? c) using me-3.5 kg.m, find the optimal absorber (by minimizing its mass). what would be the amplitude of the oscillation of the absorber?
Answers: 1
You know the right answer?
Who_meets prereqs (passed_rosters, desired_prereqs) : Description: There exist certain classes that...
Questions
question
Mathematics, 02.02.2020 21:43
question
Computers and Technology, 02.02.2020 21:43
Questions on the website: 13722360