.. _FP2:
.. raw:: html
.. |--| unicode:: U+2013 .. en dash
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
:trim:
.. This file is part of the OpenDSA eTextbook project. See
.. http://algoviz.org/OpenDSA for more details.
.. Copyright (c) 2012-13 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.
.. avmetadata::
:author: David Furcy and Tom Naps
===========================================
Functional Programming - Part 2
===========================================
.. (F 2/12/16)
RP 6 part 1
-----------
Topics of the day:
1. Developing basic, recursive list-processing functions, including
``sum``, ``isMember``, ``removeFirst``, and ``subst``
The review problem set for today contains three review problems.
This problem aims to increase your comfort with recursion in functions
that manipulate lists. Note that this problem is randomized. You
must solve it correctly three times in a row to earn the point
associated with it.
.. avembed:: Exercises/PL/RP6part1.html ka
:module: FP2
:long_name: RP set #6, question #1
:points: 1.0
:required: True
:threshold: 3.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
RP 6 part 2
-----------
This problem asks you to modify the ``removeFirst`` function.
.. avembed:: Exercises/PL/RP6part2.html ka
:module: FP2
:long_name: RP set #6, question #2
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
RP 6 part 3
-----------
This problem asks you to modify the ``subst`` function.
.. avembed:: Exercises/PL/RP6part3.html ka
:module: FP2
:long_name: RP set #6, question #3
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic