diff options
| author | Birducken <[email protected]> | 2022-11-29 14:07:34 -0800 |
|---|---|---|
| committer | Birducken <[email protected]> | 2022-11-29 14:07:34 -0800 |
| commit | c834bbe085f7e403551b466c696a6d7fb66bf3a3 (patch) | |
| tree | b70e7c4fa40ef633d60c7a3aeaaee5745e4b41fb | |
| parent | Wrote half of psuedo code. (diff) | |
| download | archived-cst116-lab3-stark-c834bbe085f7e403551b466c696a6d7fb66bf3a3.tar.xz archived-cst116-lab3-stark-c834bbe085f7e403551b466c696a6d7fb66bf3a3.zip | |
Finished psuedo code.
| -rw-r--r-- | BlankConsoleLab/cst116-lab3-stark-psuedo-code.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/BlankConsoleLab/cst116-lab3-stark-psuedo-code.txt b/BlankConsoleLab/cst116-lab3-stark-psuedo-code.txt index 5954ca1..ca35e98 100644 --- a/BlankConsoleLab/cst116-lab3-stark-psuedo-code.txt +++ b/BlankConsoleLab/cst116-lab3-stark-psuedo-code.txt @@ -21,5 +21,7 @@ for each line in file: totalPass = totalPass + pass store fare into corresponding element of fares[] array +totalPaid = sum of all elements in fares[] +average = totalPaid / total pass - +Print totalPass, totalPaid, and average |