diff options
| author | tafaar <[email protected]> | 2022-11-28 21:47:19 -0800 |
|---|---|---|
| committer | tafaar <[email protected]> | 2022-11-28 21:47:19 -0800 |
| commit | d03f90a23bcf702e380e714ab3d47056524c20ea (patch) | |
| tree | d632a09554bbcaf2346599517014798e801e2f7d | |
| parent | small edits (diff) | |
| download | cst116-lab3-hill-d03f90a23bcf702e380e714ab3d47056524c20ea.tar.xz cst116-lab3-hill-d03f90a23bcf702e380e714ab3d47056524c20ea.zip | |
more comments
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 4 |
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] |