Find the owner of each change

A club's order program has four calculation and presentation helpers:

  • calculateBase multiplies the number of items by the current unit price of CAD 12.
  • applyReduction reduces that base amount by the current member reduction of 15%.
  • addDelivery adds the current delivery charge of CAD 4.
  • formatSummary prepares the final amount for display with two decimal places.

Treat each proposed change independently. Enter the single helper name whose responsibility should contain that change. For the display change, keep calculations at full precision and change only how the result appears. Copy helper names exactly.

Proposed changeHelper to modify
Increase the unit price from CAD 12 to CAD 15
Increase the member reduction from 15% to 20%
Increase the delivery charge from CAD 4 to CAD 6
Show the final amount rounded to the nearest dollar

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Top-Down Design with Functions Questions: