Question: Write a SCHEME program to solve the problem described above. Define a function (assignment_ok? Assignment Employees) which takes two parameters, Assignment and Employees . Assignment

Write a SCHEME program to solve the problem described above. Define a function (assignment_ok? Assignment Employees) which takes two parameters, Assignment and Employees. Assignment is a list of three sub-lists, one for each shift. Each sub-list contains the work assignment for that shift: two names for lifeguards, followed by two for the snack bar, followed by one for the front desk. Employees is a list of sub-lists; each sub-list contains an employee's name, then a number (1 or 0) indicating whether the person is qualified to be a lifeguard (1=yes, 0=no), then two nonnegative integers indicating the minimum and maximum number of shifts the person can work. Function assignment_ok? should return #T if the work assignment is acceptable, and #F if the work assignment is not acceptable.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!