init var EMPLOYEES as const integer, set it to 20 init var MAX as const integer, set it to 21 prototype func ReadData(inFile, Outfile, name[][MAX], age) prototype func WriteOutPutFile(outfile, name[][MAX], age[], counter) prototype func PrintTotalAndSummary(out, totalRecords) def func main init var name as char as 2D array init var age as int array init var record_counter(0) as int init var inFile as ifstream (reading a file) init var ofstream as outFile (writing to file) if inFile is open record_counter = ReadData(inFile, outFile, name, age) close inFile if outFile is open WriteOutPutFile(outFile, name, age, record_counter) PrintTotalAndSummary(outFile, record_counter) close outFile else display "Trouble opening output file" display "About to exit NOW" else display "Trouble opening input file" display "About to exit NOW" def func int ReadData(ifstream& inFile, ofstream& outFile, char name[][MAX], int age[]) init var counter and set it to 0 prime reading of inFile while line pointer not at the end of file of inFile read the input increase counter by 1 read the name[counter] and age[counter] return counter def func void WriteOutPutFile(ofstream& outFile, char name[][MAX], int age[], int counter) display "Here is the output file" for (var r set to 0; r is less than counter; add 1 to r) write input to outFile def func void PrintTotalAndSummary(ofstream& outFile, int totalRecords) display "Total records" + totalRecords - to console screen display "Total records" + totalRecords - to output file