Question: Please help me with this question Design a TAIL RECURSIVE function that consumes a list of numbers and produces true if at least half of

Please help me with this question Design a TAIL RECURSIVE function thatPlease help me with this question

Design a TAIL RECURSIVE function that consumes a list of numbers and produces true if at least half of the numbers in lon are odd. You may assume the list contains at least one item (i.e., not empty). You must NOT use the built-in length function in your solution.;; (listof Number) rightarrow Boolean;; produce true if at least half of the numbers in lon are odd. (check-expect (majority-odd? (list 1)) true) (check-expect (majority-odd? (list 2)) false) (check-expect (majority-odd? (list 1 2 3 4)) true) (check-expect (majority-odd? (list 2 3 4 5 6)) false);(define (majority-odd? lon) false);stub Design a TAIL RECURSIVE function that consumes a list of numbers and produces true if at least half of the numbers in lon are odd. You may assume the list contains at least one item (i.e., not empty). You must NOT use the built-in length function in your solution.;; (listof Number) rightarrow Boolean;; produce true if at least half of the numbers in lon are odd. (check-expect (majority-odd? (list 1)) true) (check-expect (majority-odd? (list 2)) false) (check-expect (majority-odd? (list 1 2 3 4)) true) (check-expect (majority-odd? (list 2 3 4 5 6)) false);(define (majority-odd? lon) false);stub

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!