1 Open the Red Shape Starter File, and read through the code you find there. This code contains new programming that you haven’t seen yet! Take a moment to list everything you Notice, and then everything you Wonder…
2 What happens if you click "Run" and type
3 Add another example for "triangle".
4 Add another line of code to the definition, to define what the function should do with the input "triangle".
5 Come up with some new shapes, and add them to the code. Make sure you include examples or you will get an error message!
6 In your own words, describe how piecewise functions work in this programming environment.
These materials were developed partly through support of the National Science Foundation, (awards 1042210, 1535276, 1648684, and 1738598). Bootstrap by the Bootstrap Community is licensed under a Creative Commons 4.0 Unported License. This license does not grant permission to run training or professional development. Offering training or professional development with materials substantially derived from Bootstrap must be approved in writing by a Bootstrap Director. Permissions beyond the scope of this license, such as to run training, may be available by contacting contact@BootstrapWorld.org.