summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/pseudocode.txt
diff options
context:
space:
mode:
Diffstat (limited to 'BlankConsoleLab/pseudocode.txt')
-rw-r--r--BlankConsoleLab/pseudocode.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/BlankConsoleLab/pseudocode.txt b/BlankConsoleLab/pseudocode.txt
new file mode 100644
index 0000000..5707659
--- /dev/null
+++ b/BlankConsoleLab/pseudocode.txt
@@ -0,0 +1,17 @@
+Program start:
+
+Create a vector to hold totals (total passengers, total distance traveled, etc.)
+Get file location from user (while ensuring the location is valid)
+Open the file
+Print table headers
+
+For every line of data in the file:
+ Extract the numbers from the line and place them in a vector
+ Do the required operations (calculate averages, etc.) and push them onto the back of the vector
+ Print out the data for each line
+
+Close the file
+
+Print the totals and any averages calculated from them (with appropriate labels and formatting)
+
+Program end \ No newline at end of file