Page 1 of 1

Due date is Saturday, July 2. Extra points will be given for early submission: 1 point for each day, up to 3 points. Lat

Posted: Fri Jul 01, 2022 5:43 am
by answerhappygod
Due date is Saturday, July 2.
Extra points will be given for early submission: 1 pointfor each day, up to 3 points.
Late submissions are ONLY allowed one day after a deadline with 10% penalty.
----------------------------------------------------------------------------
Write your programs using Racket functionallanguage.
Run each of the programs as many times as necessary to showthat different situations are handled properly.
2. [12 points] Write a Racketfunction rem_second that takes a simple list as aparameter and returns a list identical to the parameter except withthe second element removed. If the given list does not haveat least two elements, the function should return an empty list.You are NOT allowed to use a standard function'length', as well as other standardfunctions.
3. [15 points] Write a Racket function my_union thatreturns a union of two simple list parameters that represent sets.Remember that duplicate elements are not allowed in a set. You areonly allowed to use a program ‘membership.rkt’ from the folder‘DrRacket’ under ‘Modules’; no other functions except for thosementioned in video lectures and the textbook!