diff options
| author | jacobdw22 <[email protected]> | 2022-11-28 19:59:11 -0800 |
|---|---|---|
| committer | jacobdw22 <[email protected]> | 2022-11-28 19:59:11 -0800 |
| commit | 49fc0170a99a31828fce5a197686dcd55ae407a6 (patch) | |
| tree | 8425a3333dedbd21e3770cdaaa036333399b80c4 /BlankConsoleLab/cst116-lab3-wilson.cpp | |
| parent | Added Lab results files for small and large text files respectively (diff) | |
| download | archived-cst116-lab3-jacobdw22-49fc0170a99a31828fce5a197686dcd55ae407a6.tar.xz archived-cst116-lab3-jacobdw22-49fc0170a99a31828fce5a197686dcd55ae407a6.zip | |
Slight adjustments. Everything works. Might need help getting the final values to be floats rather than ints.
Diffstat (limited to 'BlankConsoleLab/cst116-lab3-wilson.cpp')
| -rw-r--r-- | BlankConsoleLab/cst116-lab3-wilson.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/BlankConsoleLab/cst116-lab3-wilson.cpp b/BlankConsoleLab/cst116-lab3-wilson.cpp index 724ceb4..46862bc 100644 --- a/BlankConsoleLab/cst116-lab3-wilson.cpp +++ b/BlankConsoleLab/cst116-lab3-wilson.cpp @@ -207,10 +207,10 @@ void PrintTotalsAndSummary(ofstream& outFile, int totalRecords, int psgr[], int // To screen cout << "\n\t** People Transported: " << NumPsgr(psgr, num_psgr, totalRecords) - << " **\n"; //Prints the total people transported to the screen + << " **"; //Prints the total people transported to the screen cout << "\n\t** Total Paid (rounded down to nearest dollar): " << TotalPaid(fare, toll, total_fare, totalRecords) - << " **\n"; //Prints the total paid (all fares and tolls) to the screen + << " **"; //Prints the total paid (all fares and tolls) to the screen cout << "\n\t** Average Cost Per Person(Rounded down to nearest dollar: " << TotalPaid(fare, toll, total_fare, totalRecords) / NumPsgr(psgr, num_psgr, totalRecords) << " **\n"; //Prints the average cost per person to the screen @@ -219,10 +219,10 @@ void PrintTotalsAndSummary(ofstream& outFile, int totalRecords, int psgr[], int // To file outFile << "\n\t** People Transported: " << NumPsgr(psgr, num_psgr, totalRecords) - << " **\n"; //Prints the total people transported to the out file + << " **"; //Prints the total people transported to the out file outFile << "\n\t** Total Paid (rounded down to nearest dollar): " << TotalPaid(fare, toll, total_fare, totalRecords) - << " **\n"; //Prints the total paid (all fares and tolls) to the out file + << " **"; //Prints the total paid (all fares and tolls) to the out file outFile << "\n\t** Average Cost Per Person(Rounded down to nearest dollar: " << TotalPaid(fare, toll, total_fare, totalRecords) / NumPsgr(psgr, num_psgr, totalRecords) << " **\n"; //Prints the average cost per person to the out file |