Question: ( cond ;; Check if course has no dependents and credit is 3 [ ( and ( course ? c ) ( equal ? 'LOC
cond
;; Check if course has no dependents and credit is
and course cequal 'LOCcoursedependents c
courseswcredits c
;; Check if the course list has no dependents
and list c
nullcoursedependents first c
map lambda coursecourseswcredits course c
else
filteranodd map coursenumber cfnforloc c ; actually the question ask course has no dependents AND coursenumber list has an odd and coursewcredits so your suggested coding is not correct
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
