diff options
Diffstat (limited to 'BlankConsoleLab/BlankConsoleLab.cpp')
| -rw-r--r-- | BlankConsoleLab/BlankConsoleLab.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/BlankConsoleLab/BlankConsoleLab.cpp b/BlankConsoleLab/BlankConsoleLab.cpp index 384e3c4..c0c3e2e 100644 --- a/BlankConsoleLab/BlankConsoleLab.cpp +++ b/BlankConsoleLab/BlankConsoleLab.cpp @@ -19,7 +19,7 @@ string filename = ""; void Other_Calculations(double money[], int count_var); -float Fare_Calc(double moneys[]); +float Fare_Calc(double moneys[], int counting); int main() @@ -67,14 +67,16 @@ int main() return 0; } + Other_Calculations(total_fare, counter); + return 0; } -void Other_Calculations(double money[], int count_var, int counting) { +void Other_Calculations(double money[], int count_var) { cout << endl << endl << endl; cout << "The total number of travellers is: " << count_var << "." << endl; - cout << "The total amount of the fares is: " << Fare_Calc(total_fare, counting) << "." << endl; - cout << "The average cost per person is: " << Fare_Calc(total_fare, counting) / count_var << "." << endl; + cout << "The total amount of the fares is: " << Fare_Calc(total_fare, count_var) << "." << endl; + cout << "The average cost per person is: " << Fare_Calc(total_fare, count_var) / count_var << "." << endl; } float Fare_Calc(double moneys[], int counting) { |