Answered step by step
Verified Expert Solution
Question
1 Approved Answer
write an is-older function that satisfies the following tests in the Racket programming language Thanks! (define-test-suite test-exercise-01 (let ( [year1 2001] [month1 2] [day1 9]
write an is-older function that satisfies the following tests in the Racket programming language
Thanks!
(define-test-suite test-exercise-01 (let ( [year1 2001] [month1 2] [day1 9] [year2 2003] [month2 5] [day2 20]) (test-true "(is-older 2015 3 15 2016 7 4)". (is-older 2015 3 15 2016 7 4)) (test-true "(is-older 2001 2 9 2003 5 20" (is-older year1 month1 day1 year2 month2 day2)) (test-false "(is-older 2003 5 20 2001 2 9)" (is-older year2 month2 day2 year1 month1 day1)) (test-false "(is-older 2005 4 4 2004 5 4)". (is-older 2005 4 4 2004 5 4)) (test-false "(is-older 2003 3 3 2003 3 3)". (is-older 2003 3 3 2003 3 3))))
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