diff options
| author | Joseph Williams <[email protected]> | 2022-11-30 13:33:58 -0800 |
|---|---|---|
| committer | Joseph Williams <[email protected]> | 2022-11-30 13:33:58 -0800 |
| commit | 0d05f53a269f091e596de63afabace252261cca3 (patch) | |
| tree | f5208b39005c969ec8a5f809dc3040c135cb444a /BlankConsoleLab/pseudocode.txt | |
| parent | haha i forgot there was already a repo for this and wrote it all in another one (diff) | |
| download | archived-cst116-lab3-allthenamesaretaken3141-master.tar.xz archived-cst116-lab3-allthenamesaretaken3141-master.zip | |
Everything is finished...and it only took 10 minutes to run the program. I ran through 3 different datasets of varying sizes (because really really big datasets are fun), so there's 3 results files.HEADmaster
Diffstat (limited to 'BlankConsoleLab/pseudocode.txt')
| -rw-r--r-- | BlankConsoleLab/pseudocode.txt | 17 |
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 |