Question: In Racket Programming language, write a function that is mutually recursive. The function should be defined as (multiply-nlist list1 list2). This function will take two

In Racket Programming language, write a function that is mutually recursive. The function should be defined as (multiply-nlist list1 list2). This function will take two n-lists as arguments, and these n-lists must have the same shape. "multiply-nlist" will return an n-list that has the same shape as the two arguments, and each value is the product of the "list1" and "list2". "multiply-nlist" must be mutually recursive and use another funciton called "list-helper", that returns the product of both of the number expressions. ex : > (multiply-nlist '(2 3 2 1 5 4 8) '(5 2 3 5 6 3 1) returns : (10 6 6 5 30 12 8) ex : > (((1 3 4 2)) 6 ((5 (32) 4)))) (((2 -3 (5 1)) -2 ((5 (78) 2)))) returns : (((2 -9 (202)) -12 ((25 (21 16) 8)))))
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
