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