Here you’ll learn how to add two numbers together and display it on a preview node. It will cover the following:
- How to create component nodes
- How to edit components
- How to connect components
- How to display results
Creating Components
- Press space bar or right click in an open area of the component editor
- In the search box, type “Add”
- Select the “Adder”

Editing Components
- Using step 1 above, create a “Const” component instead of an “Adder” component
- Select the “Const” component by left clicking it
- In the top right corner, use the Component Editor to set the component’s memory value to 1

Connecting Components
- Using step 1 and 2 above, create another “Const” component and assign it’s value to 2 (hint: you can copy/paste inside of CS2!)
- Click and drag from each of the Const components’ output nodes to the Adder’s input nodes
Note: The right side of the component nodes is the “output”, the left side is the “input”. You can’t ever connect two input nodes nor two output nodes.

Display Results
- Use the above steps to create a “Preview” component
- Use the above steps to connect the Adder component’s output node to the Preview component’s input node

