Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

DrRacket please answer all the parts a) Using the symbols one and two and the procedure cons, we can construct the list (one two) by

DrRacket
please answer all the parts
image text in transcribed
a) Using the symbols one and two and the procedure cons, we can construct the list (one two) by typing (cons 'one (cons 'two ' (O) ). Using the symbols one, two, three, and four and the procedure cons, construct the following lists without using quoted lists (you may use quoted symbols and the empty list): (one two three four) b) Enter (2 1). What is the returned message? c) Enter ' (211) What does the quote do? d) We can extract the symbol a from the list (b (a c) d) using car and cdr by going through the following steps: (cdr(b(ac)d))=>((ac)d)(car(cdr(b(ac)d)))=>(ac)(car(car(cdr(b(ac)d))))=>a For each of the following lists, write the expression using car and cdr that extracts the symbol a: (b a c d) - ((b d) (c a))

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

Step: 3

blur-text-image

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 Design Query Formulation And Administration Using Oracle And PostgreSQL

Authors: Michael Mannino

8th Edition

1948426951, 978-1948426954

More Books

Students also viewed these Databases questions

Question

1. Write down two or three of your greatest strengths.

Answered: 1 week ago

Question

What roles have these individuals played in your life?

Answered: 1 week ago

Question

2. Write two or three of your greatest weaknesses.

Answered: 1 week ago