diff options
| -rw-r--r-- | Pseudocode Lab3.txt | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Pseudocode Lab3.txt b/Pseudocode Lab3.txt new file mode 100644 index 0000000..0ecfbb4 --- /dev/null +++ b/Pseudocode Lab3.txt @@ -0,0 +1,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.
\ No newline at end of file |