Software Design Using C++Review of Functions and ParametersAnswering the QuestionYour rewrite of the CalculateCost function was as follows. In addition, you selected Answer B, also shown below, for your rewrite of the Results function. Although this version correctly calls the CalculateCost function, it fails to send back the updated value in parameter TotalCost since this parameter is not a reference parameter. (A reference parameter is indicated by an ampersand.) 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++ |