diff options
| author | Trevor Bouchillon <[email protected]> | 2022-11-29 20:26:01 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-11-29 20:26:01 -0800 |
| commit | 460b346c81b5d500f0866f6bcff3cd12b857c682 (patch) | |
| tree | fea39abf2de20dcff4f657c80cc80e7bacc7cbdb | |
| parent | added outputs (diff) | |
| download | cst116-lab3-daboochillin-master.tar.xz cst116-lab3-daboochillin-master.zip | |
| -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 |