Coding Bat Related Problems (Due 3 Aug 2011)

These problems are taken from the Java Section of Coding Bat but modified for Python by Samuel Palmer. You will have to download the program 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 factorial. Then you will execute the following command:

python factorial
You do that for every function that you write.

There are several problems that we worked out in class and their solutions are still there. I would like you do any 10 from the remaining set. Use the turnin system to submit them as you would with your regular programming assignments. The TAs should see these problems on the turnin system by Wednesday, 03 August 2011, 11 PM.