Back to Big Idea 3: Algorithms & Programming

Lesson PreviewLesson 13 of 18 in this unit

3.13 Developing Procedures

Part of Big Idea 3: Algorithms & Programming in AP® Computer Science Principles. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.

Procedures are a way to organize code so that a set of instructions can be reused whenever needed. Instead of rewriting the same logic multiple times, a procedure groups those steps under a single name. This makes programs easier to read, easier to debug, and easier to modify. A procedure can take inputs, called parameters, and may produce an output using RETURN. When a procedure is called, the program executes the steps inside it using the given inputs.

Continue the full lesson in Stellar

Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science Principles.