Question: 8. Define a LISP function SAME-PARITY with the following properties. SAME-PARITY takes two arguments. It returns T if both arguments are even integers or if

8. Define a LISP function SAME-PARITY with the following properties. SAME-PARITY takes two arguments. It returns T if both arguments are even integers or if both arguments are odd integers. In all other cases SAME-PARITY returns NIL. Examples: (SAME-PARITY 0 -1) => NIL (SAME-PARITY -3 -9) =>T (SAME-PARITY 30 90) => T (SAME-PARITY 'A'A) => NIL (SAME-PARITY 4.1 3.7) => NIL
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
