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?

Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.