summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--BlankConsoleLab/cst116-lab3-wilson.cpp8
-rw-r--r--LabResultsLarge.txt2
-rw-r--r--LabResultsSmall.txt2
3 files changed, 4 insertions, 8 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
diff --git a/LabResultsLarge.txt b/LabResultsLarge.txt
index c228731..b49c88c 100644
--- a/LabResultsLarge.txt
+++ b/LabResultsLarge.txt
@@ -199,8 +199,6 @@ Cost per mile: 3.68421
** People Transported: 100 **
-
** Total Paid (rounded down to nearest dollar): 1052 **
-
** Average Cost Per Person(Rounded down to nearest dollar: 10 **
The End
diff --git a/LabResultsSmall.txt b/LabResultsSmall.txt
index 767df57..49a8423 100644
--- a/LabResultsSmall.txt
+++ b/LabResultsSmall.txt
@@ -31,8 +31,6 @@ Cost per mile: 5.79268
** People Transported: 14 **
-
** Total Paid (rounded down to nearest dollar): 113 **
-
** Average Cost Per Person(Rounded down to nearest dollar: 8 **
The End