# UT 8: 8.AP.2

## CodeHS Lessons

Create procedures with or without parameters to organize code and make it easier to reuse.

 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements and Conditionals 1.11 If/Else Statements 1.12 While Loops 2.1 Challenge Problems 9.1 Functions Challenges 11.1 Animation Challenges 12.1 Breakout
 Standard 9.1 Functions 9.2 Functions and Parameters 9.4 Functions and Return Values
 Standard 9.14 Functions and Parameters 1 9.15 Functions and Parameters 2 9.16 Functions and Return Values 1 9.17 Functions and Return Values 2
 Standard 4.2 Programming with Karel 21.1 Challenge Problems
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements and Conditionals 1.11 If/Else Statements 1.12 While Loops 1.16 Challenge Problems 8.1 Functions Challenges 10.1 Animation Challenges 11.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements and Conditionals 1.11 If/Else Statements 1.12 While Loops 2.1 Challenge Problems 9.1 Functions Challenges 11.1 Animation Challenges 12.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements and Conditionals 1.11 If/Else Statements 1.12 While Loops 2.1 Challenge Problems 9.1 Functions Challenges 12.1 Animation Challenges 13.1 Breakout
 Standard 8.2 Conditionals using Parameters
 Standard 8.2 Conditionals using Parameters
 Standard 2.2 A Day at the Park 3.4 Under the Sea 5.3 Functions 5.4 Multiple Functions 5.5 For Loops 5.6 Conditional Statements 5.7 If/Else Statements 5.8 While Loops 5.9 Karel Challenges 9.7 Program Structure
 Standard 2.2 A Day at the Park 4.4 Under the Sea
 Standard 1.3 Functions 1.4 Multiple Functions 1.5 For Loops 1.6 Conditional Statements 1.7 If/Else Statements 1.8 While Loops 1.9 Karel Challenges 5.7 Program Structure
 Standard 3.3 Functions 5.6 Parameters
 Standard 3.3 Functions 5.6 Parameters
 Standard 3.2 Program Structure
 Standard 13.8 Functions 13.13 Parameters
 Standard 3.8 Functions 3.13 Parameters
 Standard 6.8 Functions 6.13 Parameters
 Standard 7.14 Functions 7.15 Functions and Parameters 7.17 Functions and Return Values
 Standard 1.8 Functions 1.13 Parameters 6.1 Functions 6.2 Functions and Parameters 6.4 Functions and Return Values 7.4 Functions
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 8.1 Functions and Parameters 1 8.2 Functions and Parameters 2 8.3 Functions and Parameters 3 8.4 Functions and Return Values 1 8.5 Functions and Return Values 2 9.1 Functions Challenges 10.4 Functions 12.1 Animation Challenges 13.1 Breakout
 Standard 3.3 Functions 4.3 Parameters 7.5 Functions
 Standard 7.5 Functions
 Standard 2.5 Functions
 Standard 2.4 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2 8.1 Functions Challenges 10.1 Animation Challenges 11.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2 8.1 Functions Challenges 10.1 Animation Challenges 11.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2 9.1 Functions Challenges 9.1 Functions Challenges
 Standard 3.3 Functions 4.3 Parameters
 Standard 2.8 Functions 2.13 Parameters 6.1 Functions 6.2 Functions and Parameters 6.4 Functions and Return Values
 Standard 14.10 Functions and Parameters 1 14.11 Functions and Parameters 2 14.12 Functions and Return Values 1
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 10.1 Functions and Parameters 1 10.2 Functions and Parameters 2 10.3 Functions and Parameters 3 10.4 Functions and Return Values 1 10.5 Functions and Return Values 2
 Standard 2.8 Functions 2.14 Parameters 8.1 Functions 8.2 Functions and Parameters 8.4 Functions and Return Values
 Standard 3.4 Functions in Karel 3.6 Top Down Design and Decomposition in Karel 3.9 Super Karel 3.11 If Statements 3.12 If/Else Statements 3.13 While Loops in Karel 4.2 Challenge Problems 10.1 Functions and Parameters 1 10.2 Functions and Parameters 2 10.3 Functions and Parameters 3 10.4 Functions and Return Values 1 10.5 Functions and Return Values 2
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 11.1 Functions and Parameters 1 11.2 Functions and Parameters 2 11.3 Functions and Parameters 3 11.4 Functions and Return Values 1 11.5 Functions and Return Values 2
 Standard 3.8 Functions 3.13 Parameters
 Standard 6.2 Programming with Karel
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 17.1 Functions and Parameters 1 17.2 Functions and Parameters 2 17.3 Functions and Parameters 3 17.4 Functions and Return Values 1 17.5 Functions and Return Values 2
 Standard 6.1 Functions 6.2 Functions and Parameters 6.4 Functions and Return Values 18.8 Functions 18.13 Parameters
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 9.5 Functions
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements and Conditionals 1.11 If/Else Statements 1.12 While Loops 18.1 Challenge Problems 25.1 Functions Challenges 26.1 Animation Challenges 27.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 12.1 Functions and Parameters 1 12.2 Functions and Parameters 2 12.3 Functions and Parameters 3 12.4 Functions and Return Values 1 12.5 Functions and Return Values 2 13.1 Functions Challenges 22.1 Animation Challenges 23.1 Breakout
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel 2.1 Challenge Problems 8.1 Functions and Parameters 1 8.2 Functions and Parameters 2 8.3 Functions and Parameters 3 8.4 Functions and Return Values 1 8.5 Functions and Return Values 2 9.1 Functions Challenges 11.1 Animation Challenges 12.1 Breakout
 Standard 23.2 Programming with Karel
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 1.8 Functions 1.13 Parameters 6.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 3.8 Functions 3.13 Parameters
 Standard 3.8 Functions 3.14 Parameters
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements and Conditionals 2.12 If/Else Statements 2.13 While Loops
 Standard 2.3 Functions 2.4 Multiple Functions 2.5 For Loops 2.6 Conditional Statements 2.7 If/Else Statements 2.8 While Loops 2.9 Karel Challenges
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.8 Super Karel 2.10 If Statements and Conditionals 2.11 If/Else Statements 2.12 While Loops 14.1 Challenge Problems 21.1 Functions Challenges 22.1 Animation Challenges 23.1 Breakout
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 3.4 Functions in Karel 3.6 Top Down Design and Decomposition in Karel 3.9 Super Karel 3.11 If Statements 3.12 If/Else Statements 3.13 While Loops in Karel 4.2 Challenge Problems 24.5 Functions and Return Values 2 24.5 Functions and Return Values 2 24.4 Functions and Return Values 1 24.4 Functions and Return Values 1 24.3 Functions and Parameters 3 24.3 Functions and Parameters 3 24.2 Functions and Parameters 2 24.2 Functions and Parameters 2 24.1 Functions and Parameters 1 24.1 Functions and Parameters 1
 Standard 16.2 Programming with Karel
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.8 Super Karel 1.10 If Statements 1.11 If/Else Statements 1.12 While Loops in Karel
 Standard 4.4 Functions in Karel 4.6 Top Down Design and Decomposition in Karel 4.9 Super Karel 4.11 If Statements 4.12 If/Else Statements 4.13 While Loops in Karel 7.1 Functions and Parameters 1 7.2 Functions and Parameters 2 7.3 Functions and Parameters 3 7.4 Functions and Return Values 1 7.5 Functions and Return Values 2
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.8 Super Karel 2.10 If Statements and Conditionals 2.11 If/Else Statements 2.12 While Loops 3.1 Challenge Problems 12.1 Breakout
 Standard 21.2 Programming with Karel
 Standard 3.3 Functions 4.4 Parameters
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.8 Super Karel 2.10 If Statements 2.11 If/Else Statements 2.12 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 2.4 Functions in Karel 2.6 Top Down Design and Decomposition in Karel 2.9 Super Karel 2.11 If Statements 2.12 If/Else Statements 2.13 While Loops in Karel 3.2 Challenge Problems 9.1 Functions and Parameters 1 9.2 Functions and Parameters 2 9.3 Functions and Parameters 3 9.4 Functions and Return Values 1 9.5 Functions and Return Values 2
 Standard 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 13.14 Functions and Parameters 1 13.15 Functions and Parameters 2 13.16 Functions and Return Values 1 13.17 Functions and Return Values 2
 Standard 1.3 Functions 1.4 Multiple Functions 1.5 For Loops 1.6 Conditional Statements 1.7 If/Else Statements 1.8 While Loops 1.9 Karel Challenges
 Standard 1.1 Functions 1.2 Functions and Parameters 1.4 Functions and Return Values
 Standard 3.2 Program Structure
 Standard 3.3 Functions 5.6 Parameters
 Standard 3.3 Functions 5.6 Parameters
 Standard 9.1 Functions 9.2 Functions and Parameters 9.4 Functions and Return Values
 Standard 1.1 Functions 1.2 Functions and Parameters 1.4 Functions and Return Values
 Standard 8.14 Functions and Parameters 1 8.15 Functions and Parameters 2 8.16 Functions and Return Values 1 8.17 Functions and Return Values 2
 Standard 12.14 Functions and Parameters 1 12.15 Functions and Parameters 2 12.16 Functions and Return Values 1 12.17 Functions and Return Values 2