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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started