Write a C++ program that maintains a contact address book data stored in a text
ID: 3535169 • Letter: W
Question
Write a C++ program that maintains a contact address book data stored in a text file "contactlist.txt" and processes it as an ordered linked list object. Your program will create and use an ordered linked list class built using a self-referential contact structure. A contact record (i.e. structure) contains the following items:
ï‚· First name (string), ï‚· Last name (string),
ï‚· City (string), ï‚· Phone number (string),
used to order the list elements in ascending order. Important considerations: Your program should:
ï‚· Be a menu driven with options to insert a contact, delete a contact, print a contact data if found in the list, print the entire address book, delete the entire address book, search for a contact and exit menu.
ï‚· Overload the >> operator to read the entire list from the text file.
ï‚· Overload the << operator to write the entire list to the text file.
ï‚· Start by loading the contact address book data from the file into the linked list using the overloaded operator >>
ï‚· Write the linked list data to the same file after the user exits the menu using the overloaded << operator.
ï‚· Delete the list based on user request or when the list object leaves its scope..
ï‚· Include a linear search that searches the entire list based on phone number.
ï‚· Include a linear search that searches the entire list based on the first name and last name.
ï‚· Program should accept user input in upper or lower case.
ï‚· Provide linked list class operation for each of the requested functionality.
ï‚· Provide menu options that test each of the required functionality
HOW I van begin program ???
Kent State University-Trumbull
Explanation / Answer
ok here is the code, i hope this helps
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.