Under main set chararray name set intarray age set record counter to 0 input infile stream (open CH11 text file) output outfile stream if infile is open recordcounter is the readdata function infile close if outfile is open writeoutputfile function printtotalandsummary function outfile close anything else output trouble opening file, out/in file output about to exit now