Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions