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 18:10
Asingle-geared blanking press has a stroke of 200 mm and a rated capacity of 320 kn. a cam driven ram is assumed to be capable of delivering the full press load at constant force during the last 15 percent of a constant-velocity stroke. the camshaft has an average speed of 90 rev/min and is geared to the flywheel shaft at a 6: 1 ratio. the total work done is to include an allowance of 16 percent for friction a) estimate the maximum energy fluctuation b) find the rim weight for an effective diameter of 1.2 m and a coefficient of speed fluctuation of 0.10
Answers: 1
question
Engineering, 04.07.2019 18:10
Afour cylinder four-stroke in-line engine has a stroke of 160mm, connecting rod length of 150mm, a reciprocating mass of 3kg and its firing order is 1-3-4-2. the spacing between cylinders is 100mm. i. show that the engine is in balance with regard to the primary inertia forces and primary 3. a and secondary inertia couples. li determine the out of balance secondary inertia force ii. propose ways of balancing this out of balance force and discuss the challenges that will arise
Answers: 3
question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Afull journal bearing has a journal diameter of 27 mm, with a unilateral tolerance of -0.028 mm. the bushing bore has a diameter of 27.028 mm and a unilateral tolerance of 0.04 mm. the l/d ratio is 0.5. the load is 1.3 kn and the journal runs at 1200 rev/min. if the average viscosity is 50 mpa-s, find the minimum film thickness, the power loss, and the side flow for the minimum clearance assembly.
Answers: 1
You know the right answer?
Who_meets prereqs (passed_rosters, desired_prereqs) : Description: There exist certain classes that...
Questions
question
Mathematics, 20.05.2020 19:03
question
Mathematics, 20.05.2020 19:03
question
Arts, 20.05.2020 19:03
question
History, 20.05.2020 19:03