

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


CS 1410 Introduction to Computer Science – CS Section 2: MWF 9:30 a.m. – 10:20 a.m. Instructor: Xiaojun Qi Programming Assignment #
Given: March 20, 2009 Due Date: April 1, 2009 Submit electronically via the eagle system before 11:59 p.m. Total Points: 30 points
Write a program to maintain a phone book. The phone book is to be maintained as a linked list in an ascending order based on the name of the entry. Your linked list must follow the design I showed in class.
Write a linked list class , which provides the following methods and features:
Note: The Insert operation does not allow duplicates. If a duplicate name is attempted for insertion, throw an exception class named: DuplicateException.
Your program must accept the following input for each of the following operations, namely, insert, delete, and find operations. Note that the pointy brackets, < and > indicate user defined input and are not typed in the input.
Insert:
Find:
For example, find Xiaojun or find Qi should find an entry and print out the information related to the entry.
Delete:
You must write a driver program with the menu options that calls the appropriate functions to implement the aforementioned functionalities and completely demonstrates you have correctly implemented the requirements.