Ok guys, our C++ class is winding down and for our last assignments we are getting some tough problems.
We are asked to write a telephone directory program that looks up phone numbers from a separate file that contains a list of names & numbers.
The program should prompt the user to enter a first and last name, and then outputs the corresponding #. or indicates the name isn't in the directory. After each lookup, the user should be asked to look up another number or exit.
The file should obviously have data that has 3 columns with all three separated to make things easier: ie
(numbers.dat) -> James Higgins 585-1927
Martin Walters 839-1923
We are wanting to use functional decomposition for this...ie function calls....void Printname(); etc....
Easiest way to do this would be to ask for user input, and compare the name of the input to each name on the list. By using a loop you could run through all the names down the list and compare. If loop is true.. etc output number. If false try again?
Thats all i can think of...
Any help is appreciated!