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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started