Software Design Using C++Review of Functions and ParametersAnswering the QuestionYour rewrite of the CalculateCost function was as follows. Then you chose Answer A, also shown below, for your rewrite of the Results function. This is incorrect since the updated value is not sent back in the TotalCost parameter (because it is not a reference parameter). Go back and try this part again.
You can go back to the overall review listing: Review of Introductory Topics. Back to the main page for Software Design Using C++ |