Question: QUESTIONS 1. (30 points) Write in the Racket programming language a function to add the given number to the each and every element of the
QUESTIONS 1. (30 points) Write in the Racket programming language a function to add the given number to the each and every element of the given list. All functions except (car, cdr, cons, define, if, cond, else, null?,>. +, ) must be defined. Test Example Welcome to DrRacket, version 7.0 3m) Language: racket, with debugging; memory limit: 128 MB. f-list 5 '( 2 345)) (6 789 10) 2 2. (40 points) Give to the predicate "f" the self-explain name. fl.0. RX(XIL], L) :-! f(X, [YIT], IY RD-f(X, T, R). Hint The self-explain names for the predicate "a" are "append" or "concatenation The self-explain names are not "f, g", "h", etc. The not well known names such as "Operation-Manhattan" must be additionally explained. 3. (40 points) Write in the SWI Prolog programming language a predicate to delete all elements X of the list List to get the list List2. All used predicates must be defined-written by the student. Test Example il Ed Settings Rum Debug Help hreaded 64 bsts, wrsion 7.7.19 1-Prolog coaes Please u-1icense or legal details online help and background isit bttp:www.ws 411-1 help. use 7- help( TopiG) or-apropos - deleteliic .2.3]. I) 21 (22. [ 1.23.1.223 . 1.2.3.1.2.3], x)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
