Algorithm with loops

  1. Identify the outer loop and the two inner loops.
  2. Could you redraw the checkout stand flowchart so the test for quitting time was made at the top of the outer loop?
  3. Could the test for remaining items be moved to the top of the inner loop?
  4. Could the test for remaining items be moved to the top of the outer loop?