Homework Assignment Number 10

  1. Read Chapter 8

  2. Start with the phonebook program that we wrote in class and adapt it to work with files.

  3. The program should be able to load in a phonebook file and create a phonebook dictionary in python.

  4. It should be possible to add additional names and phone numbers.

  5. It should be possible to save the new phonebook as a file (that can be loaded in again).

  6. It should be possible to reverse the dictionary (using the function we wrote in class).

  7. It should be possible to save the reverse dictionary as a file.

  8. The program in class could handle cases when two or more people shared the same phone number. Make sure this works in your adapted version.

  9. Optional: Alter all programs so to handle cases when a single person has more than one phone number.

Grading Criteria

  1. Does your program work?

  2. Does it do what is asked for?

  3. Is your code clearly written, elegant and/or clever?

  4. Did you implement the extra feature, allowing for one person having multiple phone numbers?