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

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!