Create program that will merge the contents of the text files located in the given folder. The program will generate a merge-list.txt text file as an output and to be placed inside the folder MERGE that will be generated inside the given folder.
The input text files contain a list of citizen information. Each line contains the firstname, middlename, lastname, and birtdate of the citizen and separated by | character.
The output file will contain the list of citizen in grouped in 3 categories: Juvenile Citizen (age 18 below), Legal Age Citizen (age 18 to 59), Senior Citizen (age 60 and above) and the citizen names are arrange in alphabetical order. This is the format of the output file:
FOLDER NAME: CitizenList
List1
Yuli|Dunn|Bradshaw|12/05/1956Abdul|Todd|Massey|06/16/2013Elijah|Roberson|Waters|02/20/1963Ulla|Whitley|Davis|04/08/1970Maxine|Burch|Leach|08/23/1993Reagan|Nichols|Compton|05/08/2004Zenia|Mccullough|Castro|08/04/1966Jena|Conrad|Kelly|09/09/1953
List2
Yuli|Dunn|Bradshaw|12/05/1956Abdul|Todd|Massey|06/16/2013Elijah|Roberson|Waters|02/20/1963Ulla|Whitley|Davis|04/08/1970Maxine|Burch|Leach|08/23/1993
List3Malachi|Sexton|Burns|05/28/1991Keegan|Cannon|Hoover|07/07/2006Anastasia|Miranda|Patton|08/28/1952Isaiah|Rodriguez|Horn|11/29/1981
List4Kamal|Bond|Hester|05/02/2000Tyrone|Cohen|Cameron|11/05/1991Kellie|Morrison|Oneill|08/09/1989Ifeoma|Burnett|Blanchard|05/31/2001
List5
Macey|Martin|Pope|03/16/2003Hadassah|Horn|Tran|03/27/2000Hiroko|Barlow|Perry|12/11/1987Marah|Good|Figueroa|10/12/1950
Reviews
There are no reviews yet.