Coding Bat Related Tutorial Exercises (Due 27 Nov 2017)

These problems are taken from the Java Section of Coding Bat but modified for Python. You will have to download the program recursion3.py.txt and fill in the header. Remove the .txt extension. That extension is there because some browsers may not allow you to download executable files.

For each function that you wish to write, remove the comment symbol (#). Write your code and test it on the command line. Supposing the function you wrote was groupSum. Then you will execute the following command:

python3 recursion3.py groupSum
You do that for every function that you write. Do not modify the functions that have not been assigned.

I would like you to do the following problems. For each of the problems you will have to modify the sub_sets() function that we wrote in class.

  1. groupSum
  2. groupSum6
  3. groupNoAdj
  4. groupSum5
  5. groupSumClump
  6. splitArray
  7. splitOdd10
  8. split53

Use the Canvas program to submit your recursion3.py file. We should receive your work by 11 PM on Monday, 27 Nov 2017. There will be substantial penalties if you do not adhere to the guidelines. Do work with a partner for these exercises.