Coding Bat Related Tutorial Exercises (Due 13 Nov 2017)

These problems are taken from the Java Section of Coding Bat but modified for Python. You will have to download the program recursion2.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. This file is the same as the previous file that you worked on.

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 changeXY. Then you will execute the following command:

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

There are several problems that we worked out in class and you may use their solutions. I would like you to do the following problems:

  1. changeXY
  2. changePi
  3. noX
  4. allStar
  5. pairStar
  6. endX
  7. countPairs
  8. countAbc
  9. count11
  10. stringClean
  11. countHi2
  12. parenBit
  13. nestParen
  14. strCount
  15. strCopies
  16. strDist
  17. array6
  18. array11
  19. array220

Use the Canvas program to submit your recursion2.py file. We should receive your work by 11 PM on Monday, 13 Nov 2017. There will be substantial penalties if you do not adhere to the guidelines.

You may work with a partner on the tutorial exercises. Both of you must read the paper on Pair Programming . Both of you must submit the tutorial exercises individually.