create function ReadData create function WriteOutputData set output file drive location and name display "Please enter the input file name including extension: " intake file location open file for data inputs. close input file set variable record_coutner equal to function ReadData display headers for columns describing the numbers below them while the file is not at the end of the file calculate totalfare and costpermile display info from arrays containing values read from input file display Total Number of passengers, total fares, and average cost per person return value counter call writeoutputfile function while the file is not at the end of the file calculate totalfare and costpermile display info from arrays containing values read from input file display Total Number of passengers, total fares, and average cost per person close outputfile. end prgm.