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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

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

Post 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!
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply