Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write 4 functions in racket A function that receives two birth dates YYYY MM DD and returns true if the first is older than the

write 4 functions in racket

A function that receives two birth dates YYYY MM DD and returns true if the first is older than the second. If not then returns false. If the two dates are the same it returns false (* Done using tuples *)

a function that takes a list of dates and a month (i.e. an int) and returns how many dates in the list are in the given month. (* Function that receives a list of birth dates (tuples YYYY MM DD) along with a given month and returns how many of date tuples have that month *) (* Done using a list of tuples *)

Write a function 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. you can use the previous function to make this easier *

(* A function that finds all the dates that match the month given outputting the tuples in the order found *)

a function that takes a list of dates and a month (i.e., an int) and returns a list holding the dates from the argument list of dates that are in the month. The returned list should contain dates in the order they were originally given.

To make it easy may want to write an append function to be used in this one. It should take two list and append the second onto the first. You can Google this part or write your own as it is not much to do.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Analysis In Microsoft Excel

Authors: Alex Holloway

1st Edition

B0CCCPKTTX, 979-8852388452

More Books

Students also viewed these Databases questions

Question

How does the sampling frame differ from the target population?

Answered: 1 week ago

Question

demonstrate the importance of induction training.

Answered: 1 week ago