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 as it uses CalculateCost with only 2 parameters. It also assumes that CalculateCost returns its answer in the function name, which it does not do since the return type of CalculateCost is labeled as void. 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++ |