Start Program Intitialize ReadData function which will read the data of the text file in Initialize WriteOutputFile function which will write the output into a output file Initialize PrintTotalsAndSummary function which will print out the amount of names which were printed and say the end Initialize character array Initialize integer array initialize integer variable Set output file Open input file If input file is open Run function ReadData with the input and output file and first element in every line as name and second as age Close input file If output file is open Run function output file with output file, name, age, and the number of sets of names and ages Else Output that file cannot be read Else Output that file cannot be read End Program