program that will merge the contents of the text files located in the given folder Solved

30.00 $ 15.00 $

Category:

Description

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/1956
Abdul|Todd|Massey|06/16/2013
Elijah|Roberson|Waters|02/20/1963
Ulla|Whitley|Davis|04/08/1970
Maxine|Burch|Leach|08/23/1993
Reagan|Nichols|Compton|05/08/2004
Zenia|Mccullough|Castro|08/04/1966
Jena|Conrad|Kelly|09/09/1953

List2

Yuli|Dunn|Bradshaw|12/05/1956
Abdul|Todd|Massey|06/16/2013
Elijah|Roberson|Waters|02/20/1963
Ulla|Whitley|Davis|04/08/1970
Maxine|Burch|Leach|08/23/1993

List3
Malachi|Sexton|Burns|05/28/1991
Keegan|Cannon|Hoover|07/07/2006
Anastasia|Miranda|Patton|08/28/1952
Isaiah|Rodriguez|Horn|11/29/1981

List4
Kamal|Bond|Hester|05/02/2000
Tyrone|Cohen|Cameron|11/05/1991
Kellie|Morrison|Oneill|08/09/1989
Ifeoma|Burnett|Blanchard|05/31/2001

List5

Macey|Martin|Pope|03/16/2003
Hadassah|Horn|Tran|03/27/2000
Hiroko|Barlow|Perry|12/11/1987
Marah|Good|Figueroa|10/12/1950