From b9980d0a7c66a8b83993c6ca1d5225ef3c857c76 Mon Sep 17 00:00:00 2001 From: "smithbenjamin2022@gmail.com" Date: Wed, 30 Nov 2022 22:52:14 -0800 Subject: All ze code is done and working! --- BlankConsoleLab/BlankConsoleLab.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'BlankConsoleLab/BlankConsoleLab.cpp') 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) { -- cgit v1.2.3