Separate localization from proof

A checkout program loads item prices, sums their values in cents, and formats the total as a money string. For one recorded run, the intended prices are 160, 240, and 350 cents.


Three connected boxes show loading prices, summing cents, and formatting money.


Immediately after loading, the recorded list is [160, 240, 350]. The recorded total immediately after summation is 750 cents, and the formatter receives that same value. Its output is 7.05; the required output is 7.50.


Which statements are justified by this evidence? Select all that apply.

Choose an answer

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 Debugging Strategies Questions: