I have been given a task to do for a college assignment. It is to find or create a program which allows entries of an address book to be displayed depending on a unique identifier entered (e.g. "PersonNumber") and write about how the program works.
The entries of the address book should be stored on a text file. The entries have to include a PersonNumber or ID, First Name, Surname, Address, Phone Number. The program has to use a binary search algorithm. The program does not need to add any entries to the text file or remove entries -- the program only needs to read from the text file using binary searches.
My problem is that I am rubbish when it comes to programming and I could not find such a program that does this in psacal. Will someone please build me a basic program (just reading from the text file - never mind about adding or removing data)