diff options
| author | [email protected] <[email protected]> | 2022-11-30 22:52:14 -0800 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2022-11-30 22:52:14 -0800 |
| commit | b9980d0a7c66a8b83993c6ca1d5225ef3c857c76 (patch) | |
| tree | 69d2d7b993c28934a64e015e359a8e98f0068633 | |
| parent | Yet another push. Nearing the deadline!! (diff) | |
| download | cst116-lab3-smith-benjamin-b9980d0a7c66a8b83993c6ca1d5225ef3c857c76.tar.xz cst116-lab3-smith-benjamin-b9980d0a7c66a8b83993c6ca1d5225ef3c857c76.zip | |
All ze code is done and working!
| -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) { |