Purchase Solution

C++ address book program

Not what you're looking for?

Ask Custom Question

Design an address book application to keep track of the names, addresses, phone numbers, and birthdays of family, friends, and colleagues. You may implement your own linked list library, but it is recommended that you make use of the linked list API in the C++ standard template library.

At a minimum, your program should implement at least one object called AddressRecord and should hold the following data:

* recordId (must be an int. This field uniquely identifies a record in your address book)
* firstName
* lastName
* contactType (i.e. friend, family, etc.)
* streetAddress
* city
* state
* zipCode

Provide the appropriate accessor methods to set and get the data. The main program must provide the following functionality.

1. When the program is first started, it should read a data file "address.dat", if it exists, and load the data from this file in the address book’s linked list.

2. When the program exits, it should save all of the entries in the address book linked list into the "address.dat" data file. At this point, if this file does not exist, the program should create it.

3. Provide a text-based user interface to allow the user to operate on the address book data. The program should allow the user to:
(a) view all entries in the address book;
(b) search for an entry in the address book by last name (if the entry exists, print the record);
(c) add an entry to the address book;
(d) delete an entry from the address book; and
(e) modify any of the data (except the recordId) for given address book entry selected by the user. These operations should work on a linked list that holds all of the entries of the address book.

Purchase this Solution

Solution Summary

The program will allow performing multiple functions such as adding,deleting, modifying addresses. Address is store in a Address record implemented as a class and the whole address book is stored in a List. A simple menu is implemented with actions:
1) Display List
2) Add New Address
3) Modify Existing Address
4) Delete Existing Address
5) Search for an Address
6) Exit

Solution Preview

Please find attached the relevant source code files. Program.cpp contains the main driving function (main()). AddressRecord.cpp and AdddressRecord.h contain the AddressRecord class. Standard ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.

Javscript Basics

Quiz on basics of javascript programming language.