I have created this program for my school project. The full program is not complete but still the function that is supposed to display the details stored in the data file is not working properly. The function is printing the last entry twice. I want to print it only once...