Question: ONLY DO THE QUESTION 2 PLEASE. I DID QUESTION 1. I PROMISE I WILL UP VOTE FOR THE FULL AND CORRECT SOLUTION 1. Draw box

ONLY DO THE QUESTION 2 PLEASE. I DID QUESTION 1. I PROMISE I WILL UP VOTE FOR THE FULL AND CORRECT SOLUTION
1. Draw box and pointer diagrams for the following Scheme lists: a. ((((a)))) b. (1 (2 (3 42 (5)) 2. Represent the following elements as car/cdr expressions of the lists of the previous exercise. a. a of the first list b. 3 of the second list Hint: car = first item cdr = second and all subsequent items in list Example: car(_2 3 4) = 2 car(2) 34) (2) cdr ( 2 3 4) = 3 4 cdr (2) 3 4) = 3 4 adr( (2) (3) (4) ) = (3) (4) = 1. Draw box and pointer diagrams for the following Scheme lists: a. ((((a)))) b. (1 (2 (3 42 (5)) 2. Represent the following elements as car/cdr expressions of the lists of the previous exercise. a. a of the first list b. 3 of the second list Hint: car = first item cdr = second and all subsequent items in list Example: car(_2 3 4) = 2 car(2) 34) (2) cdr ( 2 3 4) = 3 4 cdr (2) 3 4) = 3 4 adr( (2) (3) (4) ) = (3) (4) =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
