CASE STUDY
304
ADDRESS BOOK
Problem:Create an address book application that creates entries and writes them to the
file bookFile.
Brainstorming:We’ve already started this process, having brainstormed the initial set
of classes and filtered them. After the initial scenario walk-through, we have the
following list:
We also have the following what-ifquestions left unresolved:
Filtering:All of this information is important, but let’s begin small. This application only
needs to create a file of entries, not process them. Let’s limit ourselves to an application
that creates an address book with just a name, an address, and a phone number in each
What happens when the user
asks for a name that's not in the book?
wants to add an entry to the book?
deletes an entry?
tries to delete an entry that isn't in the book?
wants a phone number?
wants a business address?
wants a list of upcoming birthdays?
Entry
Name
Address
Work address
Phone number
E-mail
Birthday
User interface