Question: Write the following program in Racket: Remember there are no loops in a pure functional language so anything you need to do multiple times must
Write the following program in Racket:
Remember there are no loops in a pure functional language so anything you need to do multiple times must be done using recursion.
Write a function number_in_months that takes a list of dates and a list of months (i.e., an int list) and returns the number of dates in the list of dates that are in any of the months in the list of months.
(* Hint you can use the number_in_month function to make this easier *)
(* A function that finds all the dates that match the month given outputting the tuples in the order found *)
Include your test cases please
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
