Functions
Description
A program can accomplish a given task in any number of ways. Programs can quickly grow to an unmanageable size so variables and functions provide a technique to reduce the size of the program. A variable is a space in your robot’s memory where you can store data, such as whole numbers, decimal numbers, and words. Functions group together several lines of code, which can then be referenced many times in task main, or even other functions. The use of variables and functions allows for complex control of a system.
Conclusion Questions
1. We didn't run into any trouble in this activity.
2. The main usage for variables and functions is so that the correct inputs can be entered to get the correct outputs.
2. The main usage for variables and functions is so that the correct inputs can be entered to get the correct outputs.