Choose a revealing threshold test

An online shop requires a CAD 4.00 delivery fee for order subtotals below CAD 40.00 and no delivery fee for subtotals of CAD 40.00 or more. A program instead charges the fee whenever the subtotal is less than or equal to CAD 40.00.


Valid subtotals are nonnegative multiples of CAD 0.01. What is the smallest valid subtotal at which the program disagrees with the requirement? Answer in CAD, to two decimal places.

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 Program Development Questions: