Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1-Write procedure length returns the number of items in a list (numitems-1'(A B (CD) E)) returns 4 (numitems-1'()) returns 0 2-Write procedure scales each number

image text in transcribed

1-Write procedure length returns the number of items in a list (numitems-1'(A B (CD) E)) returns 4 (numitems-1'()) returns 0 2-Write procedure scales each number in a list by a given factor (scale-list (list 1 2 3 4 5) 10) returns_'(10 20 30 40 50) 3-Write procedure takes a procedure argument and a list as arguments, and returns a list of the results produced (new-list abs (list -10 2.5 -11.6 17)) returns '(10 2.5 11.6 17) 4-Write a procedure that returns the total number of leaves of a tree (count-leaves '((1 2) 3 4)) returns '4 5-Write a procedure that takes a list and returns only the elements of the list that are| odd (odd-elements ( 1 4 7 9 6)) returns '(1 79) Note: Must be compatible with a .rkt file. (Scheme language)

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

More Books

Students also viewed these Databases questions

Question

What is employee requisition?

Answered: 1 week ago

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago

Question

=+What is the most that you should pay to complete development?

Answered: 1 week ago

Question

=+development and make the product, should you go ahead and do so?

Answered: 1 week ago