Question: . Reading your friends from an external file and initialising your friend list: The program needs to be invoked with a command line argument which

. Reading your friends from an external file and initialising your friend list: The program needs to be invoked with a command line argument which is the name of the file that includes your friend details. If this command line argument is not provided then your program needs to ask the user to enter the name of the text file. The file should include the first names, last names, genders and date of birth (dd/mm/yyyy) of your friends, separated by a semicolon (:. We assume that there is no duplicates in the first names and surnames. An example file is shown below that contains there friends: Tiffany; Evans Smith; F: 22/01/1989; Alex;Williams ; M; 23/06/1988; Clay; Bristol; F: 30/12/1989; The program will read your friends from the file and use a linked-list to store your friends' details. Please note that you cannot make any assumptions about the number of your friends and there is no upper limit for the number of friends Your friends may not be sorted in an external file, however your FriendBook which will be created by the program should be sorted by the first names in ascending order. Therefore when you insert a new friend to the list, you need find its position and then insert it. The program should not add a new friend at the end of the list and then sort the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
