summaryrefslogtreecommitdiff
path: root/Pseudocode Lab3.txt
blob: 0ecfbb42821006ce8cd4590505d06064e67b87c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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.