Trace review notes to the artifact to revise

A code review of several functions produced the notes in the table. For each note, name the design recipe artifact that should be revised first to fix the cause of the problem, not just its symptom. Type exactly one of these answers in each cell: signature, purpose statement, examples, template. An answer may be used more than once.

Review noteArtifact to revise first
The declared input type is a single number, but the problem supplies a list of prices
Every test uses an order under 50 dollars, so the free-shipping rule for orders of 50 dollars or more has never run
The function's only description is the phrase handles the discount, so two programmers expected different results for the same call
The body for a rectangle record uses its width but never its height, because it was typed without first laying out the fields the input provides
The expected value for a boundary call was copied from the program's own output after coding, so that test passed even though the program was wrong

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 The Design Recipe Questions: