Please enable JavaScript to use CodeHS

Introduction to Computer Science in C++

Functions

In this module, students will explore the use of functions, including the use of parameters and return values. They will then use these as they look at functional decomposition to help make their programming problems easier to solve and their code easier to read.

Lessons

5.1 Basic Functions

  • Functions
  • Work Schedule
  • Functional Decomposition
  • Basic Functions
  • Making a House
  • +3 more

5.2 Functions with Parameters

  • Functions with Parameters
  • Functions with Parameters Quiz
  • Basic Parameter Functions
  • Making a House with Parameters
  • Coin Counter
  • +1 more

5.3 Functions with Return Values

  • Functions with Return Values
  • Functions with Return Values Quiz
  • Basic Functions with Return Types
  • Exponential Calculator
  • Converting Feet
  • +1 more

Courses that include this module