Racket Functional Language

  • (a) [10 points] Implement a function my_calc using a multiple-way selection structure when checking the value of the first parameter.
  • (b)  [10 points] Implement a function my_calc using a two-way selection structure when checking the value of the first parameter.

2. [12 points] Write a Racket function rem_second that takes a simple list as a parameter and returns a list identical to the parameter except with the second top-level element removed. If the given list does not  have two elements, the function should return an empty list.

3. [15 points] Write a Racket function my_union that returns a union of two simple list parameters that represent sets. Remember that duplicate elements are not allowed in a set. You are only allowed to use a program ‘membership.rkt’ from the folder ‘DrRacket’ under ‘Modules’; no other functions!

Get Plagiarism-Free and Quality Papers Without Overpaying at Homeworkmavens.com
Solution Preview:

Are you Looking for Quality and Plagiarism-Free Assignment Help? Get Trusted Help From the Most Skilled Writers at Homeworkmaven.com. Hire Your Personal Writer Today and Keep Up Your GPA this Semester.
275 words per page

You essay will be 275 words per page. Tell your writer how many words you need, or the pages.

12 pt Times New Roman

Unless otherwise stated, we use 12pt Arial/Times New Roman as the font for your paper.

Double line spacing

Your essay will have double spaced text. View our sample essays.

Any citation style

APA, MLA, Chicago/Turabian, Harvard, our writers are experts at formatting.

We Accept
Image 3