Course Solutions Uncategorized (Solved) : 1 10 Points Define List Product Sqrts Takes List Non Negative Numbers Returns Product Squa Q37064353 . . . .

(Solved) : 1 10 Points Define List Product Sqrts Takes List Non Negative Numbers Returns Product Squa Q37064353 . . . .

 

1. (10 points)

Define list-product-sqrts which takes a list of non-negativenumbers and returns the product of their square roots.

Example: (list-product-sqrts (list 4 9)) 6

2. 10 points

Define a Scheme function that return the reverse of it inputlist parameters.

Example: (reverse ‘(1 4 6)) => (list 6 41)

3.   10 points

Define a Scheme function that takes two list representing setsand returns a list representing the unions of the sets.

Example: (union (list 1 2 3 4) (list 6 4 8 2)) (1 2 3 4 6 8)

Expert Answer


An answer will be send to you shortly. . . . .

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post