Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Revise the Chapter 11 Composition example so that it uses a linked list to hold the collection of address book entries. Create a project and

Revise the Chapter 11 Composition example so that it uses a linked list to hold the collection of address book entries.

Create a project and copy over the files from the Chapter 11 Composition example as well as the linkedList.h and orderedLinkedList.h files from the Chapter 16/Source Code from Text folder.

Modify the extPersonType class to

Overload the >= and == operators so that they return true if the last names of the operands are the same.

Modify the addressBookType class to

Inherit from orderedLinkedList. The addressBookType class does not have to be generic, fix the type of the items in orderedLinkedList to be extPersonType.

Modify addEntry() and findPerson() to use the linked list operations.

Extend the addressBookType class by adding these operations:

addPerson() to get the information interactively for a person and add an entry for them to the address book.

removePerson() to delete a specific person's entry from the address book.

readInfo() which takes a file name as an input parameter and reads the address book information from that file (a data file is provided for testing).

saveInfo() which takes a file name as an input parameter and writes the address book information back out to that file.

Write a program to manage the address book. The program should read the address book information from a file when it starts and write the information back out to a file when it terminates.

Make your program menu-driven and use this menu:

Select an option to manage your address book: 
Find a person 
Add a new person 
Remove a person 
Print the address book 
Quit 

Do not make changes to any classes other than extPersonType and addressBookType.

Turn in all your class files, your test program, your data file after testing, and one or more screen shots showing the results of your testing.

After completing this project you will show that you can

Extend a class by overloading operators.

Provide access to the private members of an object which is a private instance variable of another class.

Construct a collection class that uses a linked list to manage the collection.

Construct a recursive print function.

Extract data from a file on secondary storage and load it into a collection object.

Store data from a collection object to a file on secondary storage.

Construct a menu-driven program to test the features of a collection object.

Justify the claim that employing object-oriented techniques can minimize coding effort.

attatched files :"AddressData.txt"

Shelly Malik Lincoln Drive Hampton VA 23606 757-555-1212 Donald Duck Disney Street Orlando FL 11234 622-873-8920 Chelsea Tomak Kennedy Blvd Newport News VA 23602 757-777-8888 Goof Goofy Disney Street Los Angles CA 91340 215-782-9000 Brave Balto Disney Road Orlando FL 35672 415-782-5555 Bash Bashfull Long Road New York NY 01101 212-782-800

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Baccalaureate Computer Science HL And SL Option A Databases Part I Basic Concepts

Authors: H Sarah Shakibi PhD

1st Edition

1542457084, 978-1542457088

More Books

Students also viewed these Databases questions