|
So, it seems that there needs to be three separate functions called binary_search, insert, and find. To what extent will you grade against hard-coded code, because how will we be able to set up a phone directory unless we manually go into the array of structures and set each variable of each entry? Also, what about the main function. Should this only ask for user input?
In the assignment, the find function is supposed to find whether the name is in the directory. If is isn't there, it is supposed to return an error message. If is is there, do you want the phone number returned along with a print statement saying something like, "Here is the number..."?? Also, doesn't the insert function call the find function, so I am thinking that if find returns print messages, it seems that it should return nothing, reference the information given to it by binary_search, and be void. But when insert calls it, it would appear that insert needs to know the location that find went to and could not find the phone number. And one more question, do you want us to write our own sort function to first sort the directory, or are we to set the directory up already sorted?
|
Discussion of assignment requirements by Mike O'Donnell, 2000, Oct 27
to: