Directive- Read input data file and conduct calculations on the data Functions- ReadData TotalFare(new array) CostPerMile(new array) PeopleTransported TotalPaid AvgCostPerPerson WriteOutputFile PrintCalculatedData Variables- MAX (array size definition) pick array drop array psgr array dist array fare array toll array record_counter main- open report file to generate write file open data file @ location loop (in file is open) - record_counter = ReadData() infile close - nest loop (outfile is open) - WriteOutputFile() PrintCalculatedData() out file close - - Error message - - Error message - ReadData- variables- pick array drop array psgr array dist array fare array toll array counter infile prime read including counter var loop (to infile end) print: pick [counter] drop [counter] psgr [counter] dist [counter] fare [counter] toll [counter] counter + 1 infile: pick [counter] drop [counter] psgr [counter] dist [counter] fare [counter] toll [counter] WriteOutputData- variables- pick array drop array psgr array dist array fare array toll array coutner i print to outfile: "Here is the output file" loop (i = 0; i <= counter -1; i + 1) outfile: pick [counter] drop [counter] psgr [counter] dist [counter] fare [counter] toll [counter] PrintCalculatedData- variables- total_records print: "Total Records " total_records print to report: "Total Records " total_records