# 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 25.14 Parameters 25.7 Functions
 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 13.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 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 22.2 Under the Sea
 Standard 3.3 Functions 5.6 Parameters
 Standard 3.2 Program Structure
 Standard 2.1 Functions in Karel 2.4 Top Down Design and Decomposition in Karel 3.2 Super Karel 4.1 If Statements and Conditionals 4.2 If/Else Statements 5.1 While Loops 7.1 Challenge Problems
 Standard 3.8 Functions 3.13 Parameters
 Standard 6.8 Functions 6.13 Parameters
 Standard 13.8 Functions 13.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 6.10 Functions and Parameters 1 6.11 Functions and Parameters 2 6.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 and Conditionals 2.12 If/Else Statements 2.13 While Loops 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
 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 2.2 A Day at the Park
 Standard 1.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 4.7 Program Structure
 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 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 5.1 Functions 5.2 Functions and Parameters 5.4 Functions and Return Values
 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 6.6 Functions 6.12 Parameters 7.13 Functions
 Standard 8.6 Functions 8.12 Parameters 9.13 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 14.1 Animation Challenges 15.1 Breakout
 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.9 Functions 1.14 Parameters
 Standard 1.9 Functions 1.14 Parameters
 Standard 10.2 Programming with Karel
 Standard 1.4 Functions in Karel 1.6 Top Down Design and Decomposition in Karel 1.9 Super Karel 1.11 If Statements 1.12 If/Else Statements 1.13 While Loops in Karel 2.2 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
 Standard 13.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 1.8 Functions 1.13 Parameters 14.5 Functions
 Standard 8.1 Functions 8.2 Functions and Parameters 8.4 Functions and Return Values 16.14 Parameters 16.7 Functions
 Standard 8.1 Functions 8.2 Functions and Parameters 8.4 Functions and Return Values 16.14 Parameters 16.7 Functions
 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 26.5 Functions and Return Values 2 26.5 Functions and Return Values 2 26.4 Functions and Return Values 1 26.4 Functions and Return Values 1 26.3 Functions and Parameters 3 26.3 Functions and Parameters 3 26.2 Functions and Parameters 2 26.2 Functions and Parameters 2 26.1 Functions and Parameters 1 26.1 Functions and Parameters 1
 Standard 16.2 Programming with Karel
 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 14.14 Functions and Parameters 1 14.15 Functions and Parameters 2 14.16 Functions and Return Values 1 14.17 Functions and Return Values 2
 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 20.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 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.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 7.3 Functions
 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 11.14 Parameters 11.7 Functions
 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
 Standard 4.2 Programming with Karel 21.1 Challenge Problems