CS 14 - Program 1
Due Monday, April 22
Write a program for a phone company. You should use a list of lists. The main list will refer to the area code. The lists coming off the main list will store the telephone numbers in that area code. Each phone number should store the prefix and suffix separately. Example illustration shown below:

![]()
![]()
Your program should be able to support the following
actions:
Level 1 Program (max points 150 out of 170)
Use an array for the main list of area codes. Use a linked list for each phone number
list.
Level 2 Program
Use a linked lists for the main area code list, and use a linked
list for each phone number list.
When you turn in your program electronically, be sure to
turn in all your C++ files (.cc and .h) and a makefile. You must have your makefile name your
executable either level1 or level2, based on which level of
program you wrote. Programs will be
graded under Linux. Significant points
will be taken off if your program does not compile with a makefile.
Much of the grading of your program will be based on not
just getting code to do the necessary functions correctly, but on your actual
coding. Be sure to use good programming
where possible (use of classes, functions, good parameter passing techniques,
operator overloading, templates, error checking). Make your program user friendly.
There are many Lists templates available (for example, the
Standard Template Library offers a list template class). However, for this assignment, when you use a
linked list, it should be your own code so that you can practice your
programming and learn the concepts thoroughly.
On the next assignment, you will be required to use the STL list class. You may use any linked list variation of
your choice.
You should have turned in what you have thus far on your
program at least 6 hours before the due date (by 6pm). Then as you continue to work on your
program, continue to turn in more current versions.