First Summer 2006


Homework Five: Looping in Python programs (mostly related to chapters 3, 4 and 7 in the Python text).
Due date
Thursday May 25, 11:59pm
Late policy
Please turn everything on time, late solutions will not be accepted.

Work policy
Working in groups is encouraged but please turn in your own version of the assignment.

Also, please make sure you

with the Computer Science Department's Statement on Academic Integrity before turning in your assignment.

Task
Write programs that solve the following problems:

  1. (Permutations) This problem is explained in this two pictures.

  2. (Counting Characters) This problem is explained here.

  3. (Matching Strings) This problem is explained here.

  4. (Vending Machine) This problem is explained in this two pictures.

    (You can implement either one of the vending machines described).

  5. (File Processing) This problem is explained in this picture the file used as input is shown here.

    (In the file Kierkegard is misspelled on purpose; a different purpose, for another semester).

Grading
Feedback will be provided within a week, grades will be posted on-line.