Homework 5
"Midterm Tune Up"
|
Date Due: 2 Weeks worth - 2 homework grades Task: Create a telephone book program. The following objects are in your design. Object: PhoneBook has a std::list<Entry>. The PhoneBook has methods to Show, Add, Edit and Delete an Entry or Show a list of all entries sorted on the last, mi, first names. Object: Entry has the Last name, Middle Initial, First Name, Street, City, State, Zip and Phone The main function should instantiate an instance of a PhoneBook and present the PhoneBook menu. The end user selects 1 - Add, 2- Edit, 3 - Delete, 4 - Show, 5 - List, 6 - Exit. The menu runs until the user hits 6 to exit the event loop of the main. This program is all text based using std::cout and std::cin. You must use std::string, std::list and will have to use std::list<Entry>::iterator to iterate through the list. Turn In:
You may create other objects as needed. Remember this must be an object oriented design. Start early and come to the next class with a working PhoneBook and Entry objects so you can ask questions. |