Question: Program in RACKET 9. upper-threshold Define a function that takes two arguments, a list of numbers and a single number (the threshold). It should return

Program in RACKET

Program in RACKET 9. upper-threshold Define a function that takes two arguments,

9. upper-threshold Define a function that takes two arguments, a list of numbers and a single number (the threshold). It should return a new list that has the same numbers as the input list, but with all elements strictly greater than the threshold number removed. Elements that are equal to the threshold should remain be removed. You may not use the built-in filter function as a helper function. Your implementation must be recursive. Input: A list of numbers and a single atomic number. Output: A new list of numbers that contains only the numbers from the original list that are strictly less than" ( (upper-threshold '(3 6.2 72 9 5.3 1) 6) (3 2 5.3 1) > (upper-threshold '(1 2 3 4 5) 4) '(1 2 3) > (upper-threshold '(4 8 5 6 7) 6.1) (4 5 6) > (upper-threshold '(8 3 5 7) 2) '(

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!