summaryrefslogtreecommitdiff
path: root/BlankConsoleLab/BlankConsoleLab.cpp
diff options
context:
space:
mode:
authortafaar <[email protected]>2022-11-28 21:47:19 -0800
committertafaar <[email protected]>2022-11-28 21:47:19 -0800
commitd03f90a23bcf702e380e714ab3d47056524c20ea (patch)
treed632a09554bbcaf2346599517014798e801e2f7d /BlankConsoleLab/BlankConsoleLab.cpp
parentsmall edits (diff)
downloadcst116-lab3-hill-d03f90a23bcf702e380e714ab3d47056524c20ea.tar.xz
cst116-lab3-hill-d03f90a23bcf702e380e714ab3d47056524c20ea.zip
more comments
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
-rw-r--r--BlankConsoleLab/BlankConsoleLab.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp
index 6ecc93f..01c3eb2 100644
--- a/BlankConsoleLab/BlankConsoleLab.cpp
+++ b/BlankConsoleLab/BlankConsoleLab.cpp
@@ -132,12 +132,16 @@ int main()
if (choice == 'Y') {
+ // Table headers
+
cout << left << setw(10) << "\nENTRY" << setw(10) << "PICKUP"
<< setw(10) << "DROPOFF" << setw(10) << "#PASS"
<< setw(10) << "DIST" << setw(10) << "FARE$"
<< setw(10) << "TOLL$" << setw(10) << "TOTAL$"
<< setw(10) << "$/MILE" << endl;
+ // Table values
+
for (int i = 0; i < numEntries; i++) {
cout << left << setw(10) << i + 1 << setw(10) << pickUp[i]