Functions

Authored by Rachel S. Haselby In this activity, you will learn how to create functions to be reused throughout the code. You will also learn about inputs and outputs and how to group logic into pieces. We will use an Arduino program and a Wokwi simulator to create a two-button math counter.
By the end of this activity, you’ll be able to define the word function, understand how to use functions, explain inputs and outputs, and create functions using a standard formula. For this activity, please use a desktop or laptop computer. Mobile devices are not supported.
Overview
Grades 7-9
30 min
Topics
Computer ScienceGoogle CS

More activities like this