Question: ( define ( three - criteria - courses c ) ( cond [ ( empty ? c ) empty ] [ else ( local [
define threecriteriacourses c
cond
empty c empty
else
local
define fnforcourse c
cons coursenumber cfnforloc coursedependents c
define fnforloc loc
cond
empty loc empty
else
cons fnforcourse first locfnforloc rest loc
define filteranodd c
filter lambda xodd x c
define extractcoursedependents courses
map coursedependents courses
define every predicate lst
cond
empty lst #t
predicate first lstevery predicate rest lst
else #f
cond
and course cequal LOCcoursedependents c
filteranodd courseswcredits c
and list cevery lambda xequal LOClast coursedependents x c
allcoursenumbers c output error expected: andc list? notc empty given: the main issue how to extract coursedependents from the list of course
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
