The following discussion items will help refine your understanding of two of the most common types of loops.
This activity will cover the following module outcomes:
• MO1: Implement Boolean variables and decision structures. (CO3)
• MO2: Implement repetitive structures. (CO3)
Prior to the activity, read chapter 3 and 4 of the textbook, and view the slides on these chapters. Focus on the topic of “for loops” and “while loops.”
Address the following question:
Select either the “for loop” or the “while loop” and explain a business scenario for which you believe that the type of loop you chosen is the best solution. Justify your answer.