Please enable JavaScript to use CodeHS

AP Computer Science A (Nitro)

Lesson 4.4 Nested Iteration

Description

In this lesson, students will learn about nested loops. Nested loops are when loops are placed inside other loops to create more complex programs. When a loop is nested inside another loop, the inner loop must complete all its iterations before the outer loop can continue. This lesson corresponds with AP Computer Science A topic 4.4.


Objective

Students will be able to:

  • Represent nested iterative processes

Enduring Understandings

This lesson builds toward the following Enduring Understandings (EUs) and Learning Objectives (LOs). Students should understand that?

  • EU Con-2 Programmers incorporate iteration and selection into code as a way of providing instructions for the computer to process each of the many possible input values. (LO’s 2.C, 2.D, 2.E, 2.F, 2.G)

Activities

These are all the activities included in the lesson

4.4.1 Nested Iteration
4.4.2 Nested Iteration
4.4.3 Make a Rectangle
4.4.4 Nested Loop Iteration Counts
4.4.5 Inverted Triangle
4.4.6 Upright Number Triangle
4.4.7 Make a Tree
4.4.8 Multiplication Table