Problem 1) Write a Scheme function that takes two atoms and a list as parameters and returns a list identical to the par

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

Problem 1) Write a Scheme function that takes two atoms and a list as parameters and returns a list identical to the par

Post by answerhappygod »

Problem 1)
Write a Scheme function that takes two atoms and a list as
parameters and returns a list identical to the parameter list
except all top-level instances of the first given atom in the list
are replaced with the second given atom. Please include checks on
your input.
Please explain what your code does and why you believe it
works. Finally submit screen shots from the execution of the code.
It is enough to execute your functions on an online Scheme
interpreter.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply