Discussion: Programming Looping Structures

Discussion: Programming Looping Structures

  • Looping structures are key design structures used in programming languages. The ability to repeat code is a powerful tool and can save many lines of code; however, if a loop is not properly designed it can run to infinity thereby draining a system of available resources – memory and CPU time. Recommend two (2) actions that you can take in order to prevent this problem. Provide a rationale for your response.
  • Nested loops are loops within loops. Provide an example of a business application/process that would use nested loops to process or display data.