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

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

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!