Assignment: #lisp0 |
Due: 11/25/02018 |
Points: 3 |

Practice learning about Lisp.

; [1] convert to Lisp and evaluate: (2 * (4 + (5 + 3))) ; [2] convert to Lisp and evaluate: (4 + 6) - ((((8 / 4) - 1) * 6)) ; [3] convert to Lisp and evaluate: ((8 / 4) + 6) - (2 * (9 - 8)) ; [4] csc240 programming assignments up to Oct. 31 were worth ; the following points: 3 4 3 5 4 4 3 5 4 5 4 8 ; write a Lisp expression that evaluates the total points ; [5] write a Lisp expression that evaluates "52 is what % of 64?" ; [6] given: (setf a 2 b 3 c 4) ; convert to Lisp and evaluate: a^(b^c) note: ^ is exponent ; [7] convert to Lisp and evaluate: ; using setf, assign 8 to a variable named x ; and evaluate f(x) = 3x^2 - 4x + 2 ; [8] convert to Lisp and evaluate: ; using setf, assign -3 to a variable named y ; and evaluate g(y) = 5 - 7y + 3y^3 ; [9] briefly explain why (equal 3 3.0) evaluates to nil ; [10] use Lisp to reduce the fraction 50204/100400## How Assignment Submissions Should Look Like

If the following were assignment questions.

; [1] convert to Lisp and evaluate: (2 + 3) * 4 ; [2] convert to Lisp and evaluate: 5 * -3 / 2.0The submitted assignment would be in a dot-txt file that looks as follows.

; [1] (* (+ 2 3) 4) 20 ; [2] (/ (* 5 -3) 2.0) -7.5